Disable alignment with spaces for method declaration parameter
I'm having issues with the alignment of parameters on method declaration. I imported a Checkstyle config file, with the relevant settings being:
<module name="TreeWalker">
<property name="tabWidth" value="4"/>
<module name="
<property name="lineWrappingIndentation" value="8"/>
<property name="forceStrictCondition" value="true"/>
</module>
But when wrapping method parameters on method declaration intellij adds spaces to align the second line which I don't want, while for method calls it's working fine. This can be seen in the following picture:
Method declaration is padded with spaces while in the line below formatting works fine for method calls.
Also if I choose for the property lineWrappingIndentation only 4, Intellij removes one of the leading tabs on both, the method declaration and the call.
The Code Style Settings in Intellij for Java are:
Tabs and Indents:
- Use tab character
- Smart tabs
- Tab size: 4
- Indent: 4
- Continuation indent: 8
Wrapping and Braces:
For Method declaration parameters as well as for Method call arguments:
- Wrap if long
- Align when multiline unchecked!
Also toggling Smart tabs just replaces the spaces used for indentation with tabs, but does not change indentation level.
Is this just a configuration issue on my side and when yes how can I fix it, or should I submit a bug for it?
Please sign in to leave a comment.
Please file a bug at https://youtrack.jetbrains.com/issues/IDEA, attach your code style (File | Export Settings) and the sample file to reproduce.
Created IDEA-178094