views:

86

answers:

2

Can Eclipse Formatter be configured to keep:

public Long getId() { return this.id; }

And maybe to format small (one line) definitions as one-liners?

A: 

To my knowledge (and after a quick look), the default formatter does not provide this level of granularity for customization. If it's that important to the business, you might be able to find an Eclipse plugin (perhaps commercial) that can be configured with advanced rules like this.

Mark Peters
+3  A: 

No: bug 205973 has been written to request such a formatter option.
3 years later, it doesn't seem likely to be implemented.

VonC
Thanks, not what I was hoping for, but a fair answer.
Pepijn