+30
Only cleanup whitespace for modified lines
In commercial software development, it is desirable to minimize the number of unrelated changes to a file. For this reason, it would be nice if ST2 only stripped trailing whitespace (or performed any kind of whitespace cleanup) on regions of the file that have been modified, ideally as measured against the copy as stored in one's revision control system. Eclipse does this.
Customer support service by UserEcho
I'd like to add my support for this feature. Only removing trailing whitespace for modified lines would make it much easier to collaborate with team members that don't strip trailing whitespace. (Otherwise diffs are full of annoying whitespace changes.)
Yes!
trim_trailing_white_space_on_save