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

后端 未结 9 1585
没有蜡笔的小新
没有蜡笔的小新 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条回答
  •  梦毁少年i
    2020-12-22 16:36

    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.

提交回复
热议问题