Is there any way I can instruct Eclipse's formatter to put each value in an array initializer on a new line?
You can do it this way: windows/preferences/java/code style/formatter, then near the selected active profile click edit
then on the "Line Wrapping" tab
Choose "Expressions"->"Array initializers"
Under The list choose "Wrap all elements, every element an a new line"
Go to windows/preferences/java/code style/formatter, then near the selected active profile click edit, then on the new lines tab there are 2 options for this.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With