How to auto-remove trailing whitespace in Eclipse?

Posted by Jan Zankowski on Stack Overflow See other posts from Stack Overflow or by Jan Zankowski
Published on 2009-06-25T11:34:04Z Indexed on 2010/04/11 20:13 UTC
Read the original article Hit count: 425

Hello,

The question has two parts, one of which I already have the answer for.

  1. How to auto-remove trailing whitespace from the entire file being edited? -> Answer: use the AnyEdit plugin, which can be set to do that on any save to the file.
  2. How to auto-remove trailing whitespace only from the lines I changed? -> This I don't know and would appreciate any help.

Thanks, Jan

© Stack Overflow or respective owner

Related posts about eclipse

Related posts about whitespace