Java array format

Answered

Hello,

I am trying to get the following format in IntelliJ IDEA:

But the formatting inevitably changes it to:

 

I can get format I want by having the beginning brace on the same line as the "new int[ ]" but would prefer to have it on the next line. Is this possible?

Also, please note that I am using IntelliJ IDEA 2019.3.4 and that "Align when multiline" is disabled for "Array initializer."

 

Thank you kindly for the help,


Xavier

0
1 comment

Disable the indents relative to expression start will partially fix it:

0

Please sign in to leave a comment.