Changing editor tab width in eclipse 3.5

前端 未结 6 530
眼角桃花
眼角桃花 2020-12-29 17:46

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

6条回答
  •  醉话见心
    2020-12-29 18:32

    After digging into this more deeply, I think I've figured this out:

    Java file tab DISPLAY width

    Confusingly, this is under "Formatter" in preferences (like the accepted answer says). But this is inconsistent location-wise with where the option for tab display width for the non-java file Editor is located.

    /instance/org.eclipse.jdt.core/org.eclipse.jdt.core.formatter.indentation.size=16

    Text file tab DISPLAY width

    /instance/org.eclipse.ui.editors/tabWidth=2


    I emphasize DISPLAY because this is just for rendering in Eclipse. It does not change the contents of your file, and has no effect on "Source -> Format".

提交回复
热议问题