Java formatter and linebreak/join issues [message #809921] |
Wed, 29 February 2012 07:47 |
Eclipse User |
|
|
|
Hi,
trying to get the Java formatter to a suitable setting for our project and can't get it to do what I want. I'm not sure if it is that I don't find the right settings, or if they don't exist.
The main rules that I want are:
1) It is never allowed to join lines, no matter what (I can get this in code, but doesn't seem to work with javadoc where it joins at will no matter what setting I have)
2) The only time that the formatter is allowed to break lines is when the lines are too long, and always do this for all type of lines. For comments/javadoc, it will either enforce /* and */ on the different lines, or all on the same line. It refuses to allow them to stay as-is unless I completely turn off comment formatting.
3) Formatter is allowed to do "anything" within one line as long as it doesn't add/remove linebreaks (based on all the other settings)
If someone has ideas of what to put in .settings/org.eclipse.jdt.core.prefs, I'd appreciate it.
TIA,
Chris
|
|
|
Powered by
FUDForum. Page generated in 0.03383 seconds