Community
Participate
Working Groups
if you have the "align fields in columns" option ticked and format the following ------------------------------------------- public class A { private static final UnsupportedOperationException exception = new UnsupportedOperationException(); protected Object m_snapshotDate = null; //null indicates that its not snapshot view } -------------------------------------------------------------- the result is ----------------------------------------------------------------- public class A { private static final UnsupportedOperationException exception = new UnsupportedOperationException(); protected Object m_snapshotDate = null; //null // indicates // that // its // not // snapshot // view } ------------------------------------------------------------ it may not show up properly in html but the end of line comment was spread to one word per line....not very nice!
Move to JDT/Text. The code formatter doesn't touch comments.
To what value did you set the comment line length?
180. Also formatting the code twice in a row has the effect of shifting the bits of the comment that are on new lines to the start of those lines!
What would you expect? (please add comment directly to bug 47620) *** This bug has been marked as a duplicate of 47620 ***