My apologies if I'm missing something obvious but there's something that really bugs me about the Eclipse code formatter. I don't want it to make any lines of code longer, only shorter. Is there a way to force the formatter to behavior this way?
Example 1:
if (somethingIsTrue() || somethingElseIsTrue()) {
//-- Do Something.
}
Example 2:
if (somethingIsTrue() ||
somethingElseIsTrue()) {
//-- Do something.
}
I don't want the formatter to touch either of these code blocks. Currently it will always expand the second example to match the first. I don't want that.
Any ideas?