Tabs and Shifting Text

When a tab is inserted in the text, the tab is replaced by 4 spaces. This setting is hardcoded, as preference pages are not supported yet.

Pressing backspace on a line with white space before the caret is interpreted as backspacing an indentation level. 4 spaces will be deleted.

To shift lines of code to the right (i.e. indent):

  • Select the lines you wish to shift right
  • Press Tab

To shift lines of code to the left (i.e. outdent):

  • Select the lines you wish to shift left
  • Press Shift+Tab

Shifting is done by adding or removing 4 spaces before the text on the lines in the current selection. Left-shifting is also possible when the lines start with than less than 4 spaces. In that case, the lines loose all indentation. Note that Eclipse will not left-shift lines that have different indentation levels.