BamaPookie
BamaPookie

Reputation: 2569

Intellij IDEA java code formatting: If right parenthesis at wrong indentation

I have an if block with multiple lines in the expression. Everywhere else where there is a close parenthesis, it is aligned with the start of the line with the open parenthesis except for "if" expressions. For if expressions, it is using the continuation indent value of 8 added to the base indentation of 8 for the "if" line.

Indentation should be at column 8, not 16.

How do I get the right parenthesis to indent at column 8 while keeping the expression indented?

Edit: Updated picture with full expression.

Upvotes: 5

Views: 741

Answers (1)

BamaPookie
BamaPookie

Reputation: 2569

Opened a ticket, and it looks like it was fixed. See https://youtrack.jetbrains.com/issue/IDEA-175560

Upvotes: 1

Related Questions