Texstudio: Keyboard shortcut to swap two lines of LaTeX code

Created on 7 Jan 2021  Â·  2Comments  Â·  Source: texstudio-org/texstudio

I would enjoy having a keyboard shortcut that lets me swap two lines of LaTeX code.

Environment

  • TeXstudio: 2.12.6
  • Qt: 5.9.5
  • OS: Ubuntu 18.04.5 LTS (Bionic)
  • TeX distribution: pdfTeX 3.14159265-2.6-1.40.18 (TeX Live 2017/Debian)

Expected behavior

E.g. I assigned Ctrl+Shift+↑ to swap the line where the curser currently is with the line above it.

Before (curser is in the "Ipsum" line):
\item Lorem
\item Ipsum

After:
\item Ipsum
\item Lorem

Most helpful comment

See Configure -> Shortcuts -> Menus -> Editor -> Line Operations -> Move Line Up/Down
image

All 2 comments

See Configure -> Shortcuts -> Menus -> Editor -> Line Operations -> Move Line Up/Down
image

I'm so sorry. I tried to avoid this, but obviously I was not able to find this option :D Thank you.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

juliandragon picture juliandragon  Â·  6Comments

philippwerner picture philippwerner  Â·  3Comments

henrikgit picture henrikgit  Â·  3Comments

homocomputeris picture homocomputeris  Â·  7Comments

mirsamantajbakhsh picture mirsamantajbakhsh  Â·  8Comments