Changing editor tab width in eclipse 3.5

Neil picture Neil · Oct 30, 2009 · Viewed 55.3k times · Source

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?

Answer

Neil picture Neil · Oct 30, 2009

Java files have a special place to edit this setting. You need to go to

Window -> Preferences -> Java -> Code Style -> Formatter

And edit the profile.