Sublime Forum

trimTrailingWhiteSpaceOnSave

#1

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

I’ve tried using the console, but failed.

0 Likes

#2

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.

0 Likes

#3

Thanks!

0 Likes

#4

You might have been looking for following option, instead:

// Set to true to removing trailing white space on save "trim_trailing_white_space_on_save": true,

0 Likes