Search code examples
pythoneclipsepydev

How to remove trailing whitespace in PyDev plugin for Eclipse


Ideally, eclipse should remove all trailing whitespace when I save the file. I know there is option for this in C++/Java plugins for eclipse, but I couldnt find one for PyDev. Is there one? If not, whats the easiest way to achieve this?


Solution

  • Check in:

    Preferences > PyDev > Editor > Code Style > Code Formatter

    and check the "Right trim lines?" check box.