Reputation: 2861
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?
Upvotes: 40
Views: 11407
Reputation: 6156
Check in:
Preferences > PyDev > Editor > Code Style > Code Formatter
and check the "Right trim lines?" check box.
Upvotes: 46