vinodkone
vinodkone

Reputation: 2861

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?

Upvotes: 40

Views: 11407

Answers (2)

LPunker
LPunker

Reputation: 613

AnyEdit can trim trailing whitespace on save in most editors

Upvotes: 12

TorelTwiddler
TorelTwiddler

Reputation: 6156

Check in:

Preferences > PyDev > Editor > Code Style > Code Formatter

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

Upvotes: 46

Related Questions