Remove Trailing Spaces on Save in Sublime Text 2
Ever wondered how to get rid of the trailing spaces?
just add this to your user settings ( cmd + , ):
And every time you save a file Sublime will trim all the trailing spaces for you.
If you haven´t seen whitespaces yet, you should add this package: https://github.com/SublimeText/TrailingSpaces and add these lines: