#406 Save Actions for whitespace same as C/C++


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


  • Craig McQueen

    Craig McQueen - 2010-01-14

    <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>

  • Jari Pennanen

    Jari Pennanen - 2010-07-04

    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

  • Craig McQueen

    Craig McQueen - 2010-07-05

    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.

  • hemisfear

    hemisfear - 2011-10-26

    I've clicked 'Right trim lines?' in pydev version and empty lines with only a tab char do not get trimmed.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks