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
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 184.108.40.2061100616 and empty lines with only a tab char do not get trimmed.
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.