Formatter is adding an extra Indent in pre-existing code
Answered
For some reason Intellij is trying to add an extra indent (12 spaces instead of 8) when I run the formatter on the file. I've included screenshots of the code as well as settings that I think are relevant. Anyone have any ideas on why line wrapping/running formatter on existing code is adding an additional 4 spaces ?

Indent specific settings:




Please sign in to leave a comment.
>I've included screenshots of the code
Can you clarify what is formatted not as expected?
Sure. The screenshot above shows a method call that has one parameter that wraps to the next line. I would expect the wrap to indent on the next line at either 4 spaces or 8 spaces. But it is indenting at 12 spaces
Try to disable Settings(Preferences) | Editor | Code Style | Java | Wrapping and Braces | Binary expressions | Align when multiline option.
That setting was already disabled
Additional info: I am able to make it work if I uncheck align when multiline on the method call setting
However, it makes method calls with multiple arguments not align (which I also want)
What I'm really looking for is something like what eclipse has:
A default indent for wrapped lines that don't fall under any of the other predefined settings
Does intellij not have a default indent? Or is one of the settings supposed to cover this case. And if so, which one or combo do I need to change?
With enabled Alignment for the method call arguments it doesn't seem like it is possible.
>What I'm really looking for is something like what eclipse has:
>A default indent for wrapped lines that don't fall under any of the other predefined settings
Please file a request at https://youtrack.jetbrains.com/issues/IDEA. Thanks.
https://youtrack.jetbrains.com/issue/IDEA-198982 created