我已经配置了Eclipse代码格式化程序以使用4个空格缩进,但运行代码格式化程序后,我得到了两倍数量的空格。
当我使用Intellij的标准设置进行缩进时,我会得到正确数量的空格。Checkstyle规则:
<module name="Indentation">
<property name="basicOffset" value="4"/>
<property name="braceAdjustment" value="0"/>
<property name="caseIndent" value="4"/>
<property name="throwsIndent" value="4"/>
<property name="lineWrappingIndentation" value="4"/>
<property name="arrayInitIndent" value="4"/>
</module>
:<setting id="org.eclipse.jdt.core.formatter.tabulation.char" value="space"/>
<setting id="org.eclipse.jdt.core.formatter.tabulation.size" value="4"/>
<setting id="org.eclipse.jdt.core.formatter.indentation.size" value="4"/>
<setting id="org.eclipse.jdt.core.formatter.continuation_indentation" value="4"/>
运行代码格式化程序后,什么原因会导致缩进大小加倍?