Community
Participate
Working Groups
Maybe I'm just misunderstanding the way that things work, but there seem to be some fundamental problems with the code formatter. For example, if I choose "New Lines / Preserve Existing Line Breaks", then create a few blank lines in between statements, then choose "Source/Format", it gets rid of my blank lines. This isn't what I expect. -------------------------------- The entire line break system seems to be a bit screwy. For example, I would expect the following line: private static final Log logger = LogFactory.getLog(ServiceContextFactory.class); To be split into: private static final Log logger = LogFactory.getLog(ServiceContextFactory.class); But it frequently ends up as: private static final Log logger = LogFactory .getLog(ServiceContextFactory.class); or: private static final Log logger = LogFactory .getLog(ServiceContextFactory.class); And I've been spending a lot of time trying to get what I want, with inconsistent results. -------------------------------- I've had the comment formatting turned off since a few version ago, because it always seemed to get rid of my white space and leave me with code like: statement; /* * comment */ Which is just a disaster. -------------------------------- Thanks for any help, but it just seems that either I'm missing something, or there is a definite disconnect between the Code Formatter settings that I choose, and what actually happens when I click "Source/Format" Thanks for any help or info you can provide.
See bug 51623 and bug 52305. Preserve user line breaks will be removed.
The option "preserve user line breaks" has been removed from the code formatter. It will be removed from the UI soon. Fixed and released in HEAD.
Verified for 3.0 using build I200403250010.