Remove Trailing Whitespace Using Sublime Text
Sublime text editor already implement this future out of the box, but it's disabled by default and need to set a parameter on user settings and trim all trailing whitespace on saving a file.
So, click on Preferences menu => Settings - User and copy/paste this code:
{ // ......, "trim_trailing_white_space_on_save": true }
Trailing whitespace can be very helpful if you are using Git patch, as Git generate errors when patch contains trailing whitespace.
Hope this tip can be helpful for all.















