Community
Participate
Working Groups
There is already an option to ensure that there is a newline at the end of the file. Removing whitespace characters from the end of each line is another useful option to have in C/C++ editor.
+1 A patch implementing this feature is included. Code was ripped from the class org.eclipse.jdt.internal.corext.fix.CodeFormatFix, which seems to be part of the new "Clean Up" feature in JDT. Preferably we would have the Clean Up feature in CDT too at some point, but from what I can tell it's very JDT-specific right now. Not sure how the process is for generalizing and moving code between JDT and platform. Please review, comments welcome! :)
Created attachment 95495 [details] Patch to implement remove trailing whitespace on save
Fixed in HEAD > 20080410 Patch applied. Thanks a lot for contributing it.
Removal of trailing whitespace is enabled by default in HEAD > 20080503.
assigning
done