Remove trailing white spaces on save in ST3
Just discovered this and thought I would share:
Update User Preferences with this:
"trim_trailing_white_space_on_save": true,
"ensure_newline_at_eof_on_save": true
and enjoy life!
Written by Clayton McIlrath
Related protips
4 Responses
This also works perfectly in ST2 - it's the way I roll with my editor, always :D
over 1 year ago
·
Adding a newline at the end of every file kills me inside though. I don't know why, but it bothers me.
over 1 year ago
·
@gevans: You need a newline at the end of the file to be able to easily omit file contents from within the Terminal. For example:
cat ".ruby-version" >> .gitignore
over 1 year ago
·
@liquid I'm suddenly not bothered by this anymore.
over 1 year ago
·
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Sublime text
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#