Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

In textmate, how do I reverse indent a block of selected code?

I have a block of code selected, I want to un-indent this selected code.

On a pc, I would do a shift-tab and it would un-indent.

like image 371
Blankman Avatar asked Dec 22 '22 23:12

Blankman


2 Answers

Option+Shift+Tab (or Cmd+]).

Omitting shift (or changing ] to [) will indent instead of reverse-indent.

like image 175
Amber Avatar answered Dec 26 '22 10:12

Amber


The following is from TextMate Power Editing for the Mac by James Edward Gray II.


+[ or ++

Decrease selection indent (works on current line when nothing is selected)


+] or +

Increase selection indent (works on current line when nothing is selected)


++[

Reindent selection based on current language grammar rules (works on current line when nothing is selected)

like image 34
Matthew Rankin Avatar answered Dec 26 '22 10:12

Matthew Rankin