我从这里得到了Google java风格:https://github.com/google/styleguide/blob/gh-pages/eclipse-java-google-style.xml
它看起来像这种使用2空间缩进的风格。但我想要四个空间的凹痕。,我认为找到了控制缩进的行:
<setting id="org.eclipse.jdt.core.formatter.continuation_indentation" value="2"/>
改为:
<setting id="org.eclipse.jdt.core.formatter.continuation_indentation" value="4"/>
并添加到git格式化程序插件中。再次运行formatter:format,但是没有什么改变(仍然是2空间缩进)。
我是否更改了配置文件中的正确行?如果没有,那么描述缩进的正确行是什么?
发布于 2019-08-22 19:21:30
改变tabulation.size对我是有效的。
<setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="4"/>https://stackoverflow.com/questions/33726304
复制相似问题