I recently migrated over from Notepad++ (and from Windows) and I am finding myself at an inconvenience without CTRL + T in Notepad++ which switches the current line with the previous line. I tried using Move selection (CMD + CTRL + ARROW), but it does not behave the same way.
Tell me more
×
Ask Different is a question and answer site for
power users of Apple hardware and software. It's 100% free, no registration required.
|
It's the same as in Notepad++, control ⌃+T. Place your cursor at the beginning of the second line, press ⌃ T, and the two lines will be transposed. Your cursor will also move down a line as well, enabling you to repeatedly transpose to move a line down several spots. |
|||||
|
|
You can also use control ⌃+↑ and control ⌃+↓. |
|||
|
|