views:

34

answers:

2

Recently switched to Textmate on Mac for coding. On PC when ever I want to tab in or out a block of code I just highlight and press tab or shift+tab to move it in our out. It's very useful when you are adding an extra loop or conditional statement to a block of code to keep everything tidy and neatly indented.

On Textmate however when I try this it just replaces my selected text with a tab. So is there a way to do tab and de-tab lines of code in textmate?

A: 

the hotkey is command-left bracket to move left and command-right bracket to move right (the buttons next to 'p')

heres a link to more hotkeys and such http://projects.serenity.de/textmate/tutorials/basics/

Josh
I can't find that anywhere in those docs. I find the documentation for textmate horrible in general.
Derek Organ
+1  A: 

Indent: Alt+Tab

Un-Indent: Shift+Alt+Tab

David Antaramian
nice one. thanks
Derek Organ
:) http://manual.macromates.com/en/ can be a bit much to read through, but it's a good resource. For the most part, you'll learn TextMate as you use it.
David Antaramian