SublimeText/TrailingSpaces — Issue #8: automatically clean up lines that I type, but not others
Author: glyph
Created: 2012-03-01 20:22:11+00:00
State: open

If I'm editing a file, I don't want to add *new* trailing whitespace, but I also don't want to be submitting massive diffs that clean up all the whitespace in a big file while I'm making an unrelated change.

So when I type "return return ", I want to automatically clean up the whitespace that's left behind, but I don't want to use the "nuclear option" of "delete trailing spaces", since that's going to affect lots of lines I didn't write.

A good start on this would be for "delete trailing spaces" to only work on selected lines, if there's an active selection.