Unindent lines in Sublime Text

21,090

Solution 1

This is like other editors. Just try Shift+TAB. ;)

Solution 2

The commands you're talking about are called "indent" and "unindent".

Mac

Indent: cmd + ]

Unindent: cmd + [

Others

Indent: ctrl + ]

Unindent: ctrl + [

Solution 3

You can try Shift+TAB to un-indent multiple selected lines. If you want to un-indent a single line where the cursor is in, you need to set

 "shift_tab_unindent": true,

in your user settings.

Share:
21,090
Sindre
Author by

Sindre

Updated on November 14, 2020

Comments

  • Sindre
    Sindre over 3 years

    You know when you have a bunch of text marked and predd TAB the text moves to the right (I can't remember what this is called...). How can I make the text do the opposite?

  • tombruijn
    tombruijn over 10 years
    You actually need the shift_tab_unindent setting to be set to true for this to work. I think it's false by default.
  • arturomp
    arturomp over 10 years
    @tombruijn it is off by default, but that only means that it works only partially: By default, shift+tab will only unindent if the selection spans multiple lines. When pressing shift+tab at other times, it'll insert a tab character - this allows tabs to be inserted when tab_completion is enabled. Set this to true to make shift+tab always unindent, instead of inserting tabs.
  • Mr_Username
    Mr_Username about 6 years
    you can also do