Menu

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

open
nobody
5
2014-12-02
2009-12-01
No

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

Discussion

  • 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 2.2.3.2011100616 and empty lines with only a tab char do not get trimmed.

     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.