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"/>
2条答案
按热度按时间x0fgdtte1#
The same question
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"/>