Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse Indigo: shift+tab outdent (indentation) does not work anymore

After installing the new Eclipse Indigo, the outdent does not work anymore when I press shift+tab on a line. Is there any setting which activates this again?

like image 267
powtac Avatar asked Jun 27 '11 11:06

powtac


People also ask

How do I indent a block of code in Eclipse?

Tab and Shift + Tab are the normal ways to do this in Eclipse, just like in Visual Studio. In addition to the keyboard shortcuts, you can also do this from the Source menu. Source -> Shift Left, and Source -> Shift Right.

How do I indent multiple lines in eclipse?

Select all, then do Ctrl + I . The advantage of this method over selecting some lines, then pressing Tab , is that it is much faster to do Ctrl + A then Ctrl + I , than tabbing lines at a time.


1 Answers

Problem still actual for Eclipse Kepler

in Main Menu -> Window -> Preferences -> PHP -> Formatter -> {your formatter profile} -> Edit -> Identation -> General Settings:

change tab policy to Spaces and indentation size to 4 (or any desired amount).

Source: https://bugs.eclipse.org/bugs/show_bug.cgi?id=210108

like image 67
TheosDen Avatar answered Sep 22 '22 15:09

TheosDen