Community
Participate
Working Groups
Using either Elipse preferences or per-project preferences, selecting "Java Code Style"/"Formatter"->"Java Conventions [built-in]" and then pressing "Show..." to see how comments are formatted displays: 12345678901234567890 /** * This is an example comment. * This is the last line of this comment. */ However, the indentation is set to Mixed mode, with 4 space indentation using tabs representing 8 spaces. The display example, both the one above and the one shown in the dialog box properly indents the first line of the comment, but the second line of the comment is indented 8 spaces when it should be indented only four (plus one to line up the asterisks).
I should add that when I am editing code, and I have used the auto formatter on a paragraph of comments like the above, and then move to the beginning of a line (column 1) that is indented too much, and then press the "TAB" key, that line is adjusted to be formatted as expected.
Where do you get this code from? 12345678901234567890 /** * This is an example comment. * This is the last line of this comment. */
I took that from the example display in the dialog box for "Comments" in the formatter setup.
*** Bug 165475 has been marked as a duplicate of this bug. ***
*** This bug has been marked as a duplicate of 145544 ***
Changing OS from Mac OS to Mac OS X as per bug 185991