Accepted answer

in visual studio and most other half decent ides you can simply do shift+tab. it does the opposite of just tab.

i would think and hope that the ides you mention support this as well.


you can also change the shortcut. use the command+k command+s shortcuts to open the keyboard shortcut menu and search for the "tab" then find the "outdent" on the list.


don't know if anyone is still looking here, but you can do this by going to window menu > preferences, then open the general list, choose keys. scroll down the list of keys until you see "shift left". click that. below that you'll see some boxes, one of which lets you bind a key. it won't accept shift-tab, so i bound it to shift-`. apply-and-close and you're all set.


shift-tab does that in flex builder (based on eclipse) - so it hopefully should work in regular eclipse :)


in pycharm just use shift+tab to move a block of code left.


this workaround works most of the time. it uses eclipse's 'smart insert' features instead:

  1. control x to erase the selected block of text, and keep it for pasting.
  2. control+shift enter, to open a new line for editing above the one you are at.
  3. you might want to adjust the tabbing position at this point. this is where tabbing will start, unless you are at the beginning of the line.
  4. control v to paste back the buffer.

hope this helps until shift+tab is implemented in eclipse.


shift-tab doesn't seem to work on multi-lines in aptana. it also doesn't work on single lines with a single preceding space. any workarounds? i use shift-tab (outdent) to fix badly formatted code all the time.

i miss netbeans ...

update: it works on multi-newlines, if the multi-lines have the same level of indentation. it should just continue outdenting the other lines that haven't reached the beginning of the new line yet. is there an option to change this i wonder?


in general shift + tab works for any environment.


here is a general answer for untab :-

in python idle :- ctrl + [

in elipse :- shitft + tab

in visual studio :- shift+ tab


shift-tab outdents again :)

here's where the standard shortcut keys are covered:

you'll find many of the more esoteric ones here:

Related Query

More Query from same tag