Can Eclipse Formatter be configured to keep:
public Long getId() { return this.id; }
And maybe to format small (one line) definitions as one-liners?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No: bug 205973 has been written to request such a formatter option.
3 years later, it doesn’t seem likely to be implemented.
Edit May 2001:
maleki mentions, in response to orbfish‘s comment, that at least you have some control over the zones of code which Eclipse may or may not format:
Java development user guide > Reference > Java Editor > Formatter Help page
This isn’t a direct answer, but it can help: