Keyboard shortcut to “untab” (move a block of code to the left) in eclipse / aptana?

后端 未结 9 1506
没有蜡笔的小新
没有蜡笔的小新 2020-12-22 15:37

Well, hopefully the question is self-explanatory.

It\'s so easy to select a block of code and tab out, but how about the reverse?

Currently, I just search &a

相关标签:
9条回答
  • 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?

    0 讨论(0)
  • 2020-12-22 16:13

    In general Shift + Tab works for any environment.

    0 讨论(0)
  • 2020-12-22 16:13

    Shift-tab does that in Flex Builder (Based on Eclipse) - SO it hopefully should work in regular eclipse :)

    0 讨论(0)
  • 2020-12-22 16:16

    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.

    0 讨论(0)
  • 2020-12-22 16:32

    Here is a general answer for untab :-

    In Python IDLE :- Ctrl + [

    In elipse :- Shitft + Tab

    In Visual Studio :- Shift+ Tab

    0 讨论(0)
  • 2020-12-22 16:33

    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.

    0 讨论(0)
提交回复
热议问题