Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Java formatter and linebreak/join issues(linebreak restrictions wanted)
Java formatter and linebreak/join issues [message #809921] Wed, 29 February 2012 07:47
Eclipse UserFriend
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
Previous Topic:eclipse JDT - how to set the background color of the tooltips window in Java editor ?
Next Topic:How to rename local variable programmatically?
Goto Forum:
  


Current Time: Mon May 19 20:27:00 EDT 2025

Powered by FUDForum. Page generated in 0.03383 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top