Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Textmate tab and de-tab selected block

Tags:

macos

textmate

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?

like image 461
Derek Organ Avatar asked May 31 '10 15:05

Derek Organ


2 Answers

Indent: Alt+Tab

Un-Indent: Shift+Alt+Tab

like image 120
David Antaramian Avatar answered Nov 19 '22 23:11

David Antaramian


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/

like image 8
Josh Avatar answered Nov 19 '22 23:11

Josh