Community
Participate
Working Groups
When formating multiple fields with "align fields in columns" checked and with comments at the end of the line, depending on the number of characters in that line, the comment comes one tab back. Assume the following code: public String A = "1"; // a public String B = "22"; // b public String C = "333"; // c public String D = "4444"; // d When applying formatting, this is what I expect as formated output: public String A = "1"; // a public String B = "22"; // b public String C = "333"; // c public String D = "4444"; // d But this is the formated output that I receive: public String A = "1"; // a public String B = "22"; // b public String C = "333"; // c public String D = "4444"; // d if you increase or decrease in one the number of characters in the value part (the string itself) the formatting works like expected. public String A = "1"; // x public String B = "12"; // y public String C = "123"; // z
As I can see, the formating of the code broke. This is the link to the original post, where you can see the formatting: http://www.eclipse.org/forums/index.php/m/692967/#msg_692967
Will investigate, time permitting.
Bug persists in Indigo 3.7.2
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