Community
Participate
Working Groups
Build ID: I20070921-0919 Could you make the "Correct indentation" clean up to do nothing for lines where the indentation is "of good size" but is done with a mix of spaces and tabs when the formatter preferences say "mixed tab/space" ?
You could use format clean up.
(In reply to comment #1) > You could use format clean up. Well format does a lot of changes to the source code, and i can't do that without being hated by my coworkers ;)
>Well format does a lot of changes to the source code, and i can't do that >without being hated by my coworkers ;) We plan to add an option to only format changed regions.
(In reply to comment #0) > Build ID: I20070921-0919 > > Could you make the "Correct indentation" clean up to do nothing for lines where > the indentation is "of good size" but is done with a mix of spaces and tabs > when the formatter preferences say "mixed tab/space" ? > What is your use case? Do you want to reduce the amount of outgoing changes? Would fixing bug 201063 help if that would also be available for correct indentation? Would you expect the same behavior for the correct indentation action?
(In reply to comment #4) > What is your use case? Do you want to reduce the amount of outgoing changes? > Would fixing bug 201063 help if that would also be available for correct > indentation? > > Would you expect the same behavior for the correct indentation action? Here is a use case: ================= public class Test { private int i; // a. old line added Smith, indent was done using 4 spaces private double d; // b. old line added by Doe, indent was done using 1 tab private float f; // c. old line added by Smith, without indentation private byte b; // d. old mis-indented line added by Doe public String s; // e. i have just added a mis-indented line before saving } ================= When i save, i would expect that the lines (a and b) remains the same, and the lines (c, d and e) are corrected. From what i understand, fixing the bug 201063 would not help.