Macs are renowned (or bemoaned) for having an extensive number of shortcuts. However, OS X itself pales in comparison to the shortcut lists in TextMate and its bundles.
What are some useful keyboard shortcuts you use?
Macs are renowned (or bemoaned) for having an extensive number of shortcuts. However, OS X itself pales in comparison to the shortcut lists in TextMate and its bundles.
What are some useful keyboard shortcuts you use?
Format CSS: CONTROL + Q
Select some CSS and press CONTROL + Q to turn this:
Into this:
CMD + / comments out a line and it's smart enough to format based on language. I use it all the time.
(these are mostly html-related)
\n
or<br>
depending on the occasion.These are my favorite shortcuts:
Control-T(ControlT): Transpose (works in most Cocoa-native text fields and areas, but TextMate enhances the behavior).
Place your caret between two characters, hit ControlT, and the characters switch places (this is standard Mac behavior). Awesome for typos.
Select a word or series of characters on a single line, hit ControlT, and the characters in the selection will now be reversed (not too useful, but this is a TextMate enhancement)
Select a series of characters that spans more than one line, hit ControlT, and the lines will reverse. Characters within the line will still be in order. Most useful when selecting whole lines, but still works with partial lines selected, just so long as there is at least one newline character selected (TextMate enhancement).
Downcase selected text: CONTROL + SHIFT + U
Will turn:
Into: