Community
Participate
Working Groups
When enabling the Java code formatting options 'Enable line comment formatting' and 'Never indent line comments on first column', automatically wrapped line comments are incorrectly formatted. Instead of int bar2(); // This is a long comment that should be split in multiple // line comments in case the line comment formatting is enabled you get: int bar2(); // This is a long comment that should be split in multiple // line comments in case the line comment formatting is enabled This can be seen directly on the comments tab of the Java code formatting options. Simply set the line width to e.g. 100 characters and toggle the option 'Never indent line comments on first column'.
This problem no longer occurs after the formatter redesign. *** This bug has been marked as a duplicate of bug 303519 ***
Does that mean it should work in 4.5.2? (I'm asking because it definitely doesn't work for me.)
Yes, I could easily reproduce the bug in 4.4.1 but not in 4.5.2. Could you test it with a freshly download Eclipse and see if the bug occurs right away or after importing your formatter profile or other settings or after installing specific plugins?
Works on a freshly downloaded install, but not on my upgraded installation. Time to reinstall Eclipse then. Thank you.