在 Eclipse 3.5 中更改编辑器选项卡宽度

2022-01-09 00:00:00 tabs eclipse

我正在尝试从窗口 -> 首选项 -> 常规 -> 编辑器 -> 文本编辑器中调整选项卡的宽度,其中有一个显示选项卡宽度"字段.但无论我在那里输入什么,当我在 Java 文件中开始换行时,缩进的大小都是 4.有什么想法吗?

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?

推荐答案

Java 文件有一个特殊的地方可以编辑这个设置.你需要去

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

窗口->首选项->爪哇->代码风格 ->格式化程序

然后编辑个人资料.

相关文章