Home Download Buy Blog Forum Support

trimTrailingWhiteSpaceOnSave

trimTrailingWhiteSpaceOnSave

Postby randomblue12 on Sat Sep 24, 2011 5:15 pm

I'm new to Sublime. How do I set the option trimTrailingWhiteSpaceOnSave.

I've tried using the console, but failed.
randomblue12
 
Posts: 3
Joined: Sat Sep 24, 2011 5:14 pm

Re: trimTrailingWhiteSpaceOnSave

Postby C0D312 on Sat Sep 24, 2011 6:35 pm

It's in your settings file. Go to Preferences > File Settings - Default. You can also get to this file by using the Command Palette (windows: ctrl+shift+p; mac: command+shift+p) and typing "Default File Settings." Inside is a list of all the settings. Scroll down until you see: "trim_automatic_white_space." Set this to true.
C0D312
 
Posts: 1063
Joined: Sun Jul 10, 2011 3:23 am

Re: trimTrailingWhiteSpaceOnSave

Postby randomblue12 on Sat Sep 24, 2011 7:24 pm

Thanks!
randomblue12
 
Posts: 3
Joined: Sat Sep 24, 2011 5:14 pm

Re: trimTrailingWhiteSpaceOnSave

Postby hinnerk-a on Fri May 18, 2012 6:41 am

You might have been looking for following option, instead:
Code: Select all
    // Set to true to removing trailing white space on save
    "trim_trailing_white_space_on_save": true,
hinnerk-a
 
Posts: 1
Joined: Fri May 18, 2012 6:37 am


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 10 guests