This is a request for the same preferences for the PyDev editor, regarding trailing whitespace, as for C/C++. Namely, see in Preferences: C/C++ / Editor / Save Actions.
[ ] Remove trailing whitespace () In edited lines () In all lines
<a href="http://stackoverflow.com/questions/1043433/how-to-auto-remove-trailing-whitespace-in-eclipse/1048858#1048858">http://stackoverflow.com/questions/1043433/how-to-auto-remove-trailing-whitespace-in-eclipse/1048858#1048858</a>
PyDev can do it by either Ctrl+Shift+F if you have code formatter option set to do it, or by during saving:
Preferences -> PyDev -> Editor -> Code Style -> Code Formatter:
I use at least these for optimal diffs:
- Auto format before saving - Right trim lines? - Add new line at end of file
The thing about Ctrl+Shift+F is that it wants to make more changes than what I'm interested in, and those changes can't be turned off.
It might be okay if the check-boxes were tri-state: yes/no/unchanged.
I've clicked 'Right trim lines?' in pydev version 2.2.3.2011100616 and empty lines with only a tab char do not get trimmed.
<a href="http://stackoverflow.com/questions/1043433/how-to-auto-remove-trailing-whitespace-in-eclipse/1048858#1048858">http://stackoverflow.com/questions/1043433/how-to-auto-remove-trailing-whitespace-in-eclipse/1048858#1048858</a>
PyDev can do it by either Ctrl+Shift+F if you have code formatter option set to do it, or by during saving:
Preferences -> PyDev -> Editor -> Code Style -> Code Formatter:
I use at least these for optimal diffs:
- Auto format before saving
- Right trim lines?
- Add new line at end of file
The thing about Ctrl+Shift+F is that it wants to make more changes than what I'm interested in, and those changes can't be turned off.
It might be okay if the check-boxes were tri-state: yes/no/unchanged.
I've clicked 'Right trim lines?' in pydev version 2.2.3.2011100616 and empty lines with only a tab char do not get trimmed.