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.