p3c Formatter eclipse-codestyle.xml issues

kadbb459  于 2个月前  发布在  Eclipse
关注(0)|答案(2)|浏览(46)

Describe the bug
eclipse-codestyle.xml 没有遵循阿里代码规范。主要有如下两处限制换行的问题。

Expected behavior

After formatting

3wabscal

3wabscal2#

A solution has been found, the template file can add the following two lines of configuration
<!-- Chained method calls are not indented to one line --> <setting id="org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation" value="81"/> <!-- Alignment of enum constants is not indented to one line --> <setting id="org.eclipse.jdt.core.formatter.alignment_for_enum_constants" value="17"/>

相关问题