Community
Participate
Working Groups
Build Identifier: M20120208-0800 When "Align fields in columns" (on the "Indentation" tab) is checked, the formatter calculates the wrong x-column to place the comments at. The setting of using spaces or tabs is irrelevant. In both cases, the columns calculated is one place too far to the left. With spaces this causes all but the longest in the block to be off by 1. With tabs this causes about 25% of the lines to have one tab too few (with tab size 4). For example: public short format; // u2 public short langTagCount; // u2 public LangTagRecord[] langTagRecords = null; // t4*langTagCount public short count; // u2 public short stringOffset; // u2 public NameRecord[] nameRecords; // t12*count I haven't found a workaround, and the option "Preserve white space between code and line comments" doesn't work (see the next bug I'm posting) Reproducible: Always
This problem no longer occurs after the formatter redesign. *** This bug has been marked as a duplicate of bug 303519 ***
Verified for Eclipse Photon (4.8) M6 with Build id: I20180306-0800