Blankman
Blankman

Reputation: 267140

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.

Upvotes: 5

Views: 4770

Answers (2)

Matthew Rankin
Matthew Rankin

Reputation: 461167

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)

Upvotes: 4

Amber
Amber

Reputation: 527073

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

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

Upvotes: 8

Related Questions