Ask Different is a question and answer site for power users of Apple hardware and software. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 4 down vote accepted

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.

share|improve this answer
<3 - Do you have any other tips for using TextMate better? – Doug Jul 10 '11 at 6:24
@Doug Well, one of my favorite TM features is column selection - select some text on multiple columns, hit option, and see what happens – Kyle Cronin Jul 10 '11 at 17:04

You can also use control ⌃+ and control ⌃+.
Works from any point of the line, but will yield strange results if the line you're on has no line ending character.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.