I am trying to adjust the width of tabs from Window -> Preferences -> General -> Editors -> Text Editors where there is a field for "Display Tab Width". But no matter what I enter there the size of indentations when I start a newline in a Java file is 4. Any ideas?
+2
A:
Check your Java->Code Style->Formatter settings, to see whether you're using tabs or spaces; you might be using spaces!
Jonathan Feinberg
2009-10-30 15:56:01
A:
Java files have a special place to edit this setting. You need to go to Window -> Prefs -> Java -> Formatter and edit the profile.
NP
2009-10-30 15:57:51
A:
This setting is superseded for Java by the setting from the Code Style Formatter.
It can be found in Java / Code Style / Formatter (click Edit) / Indentation tab / Indentation
David Pierre
2009-10-30 15:58:18