Change editor tab width in eclipse 3.5

I am trying to adjust the width of the tabs from the window β†’ Settings β†’ General β†’ Editors β†’ Text Editors, where there is a field for β€œTab Screen Width”. But no matter what I type in there, the indentation size when I start a new line in the Java file is 4. Any ideas?

+55
eclipse tabs
30 Oct '09 at 15:54
source share
4 answers

Java files have a special place for editing this parameter. You need to go to

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

And edit the profile.

+88
30 Oct '09 at 15:57
source share

Changing the window β†’ Settings β†’ General β†’ Editors β†’ The settings of the Text Editors tab relate to text files, not Java files, as indicated here. You can create a text file in Eclipse and make sure that the size of your tab is really resized.

+4
Apr 01 '14 at 13:45
source share

Check your Java-> Code Style-> Formatter settings to see if you use tabs or spaces; you can use spaces!

+2
Oct 30 '09 at 15:56
source share

This parameter is replaced by Java to configure from code style formatting.

It can be found in Java / Code Style / Formatter (click "Edit") / Indent / Indent tab

+2
Oct 30 '09 at 15:58
source share



All Articles