5

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.

Blankman
  • 259,732
  • 324
  • 769
  • 1,199
  • 1
    This isn't really a Python question. It's really just Textmate. – S.Lott Sep 13 '10 at 03:28
  • 2
    But if he weren't using python, the indentation probably wouldn't matter. ;-) – tfe Sep 13 '10 at 05:11
  • To enable Shift+Tab in textmate, see my answer on the possible dupe of this question; http://stackoverflow.com/questions/2944400/textmate-tab-and-de-tab-selected-block/38134707#38134707 – Graham P Heath Jun 30 '16 at 23:14

2 Answers2

8

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

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

Amber
  • 507,862
  • 82
  • 626
  • 550
4

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)

Graham P Heath
  • 7,009
  • 3
  • 31
  • 45
Matthew Rankin
  • 457,139
  • 39
  • 126
  • 163