Home Download Buy Blog Forum Support

Automatically trim trailing space?

Automatically trim trailing space?

Postby devicenull on Mon Oct 31, 2011 9:59 pm

Is there an option to automatically trim trailing space from all the lines in a file? Or a hotkey that will do the same thing?
devicenull
 
Posts: 2
Joined: Mon Oct 31, 2011 9:58 pm

Re: Automatically trim trailing space?

Postby bluehex on Tue Nov 01, 2011 6:09 am

There's an option that you can set to do this on save:
You can add this to your File Settings -- User config file under the preferences menu.
Code: Select all
   // Set to true to removing trailing white space on save
   "trim_trailing_white_space_on_save": true


All of the default options can be found in the *Settings -- Default files in that same menu. To customize any of them copy just the ones you care about into the User settings file of the same name and override them.
bluehex
 
Posts: 4
Joined: Wed Oct 19, 2011 12:24 am

Re: Automatically trim trailing space?

Postby rchl on Tue Nov 01, 2011 10:09 am

You can also/instead setup a shortcut that uses "trim_trailing_white_space" command.
rchl
 
Posts: 142
Joined: Fri Mar 04, 2011 11:02 pm

Re: Automatically trim trailing space?

Postby devicenull on Tue Nov 01, 2011 1:53 pm

Awesome! Thanks.
devicenull
 
Posts: 2
Joined: Mon Oct 31, 2011 9:58 pm


Return to General Discussion

Who is online

Users browsing this forum: dsego, pgrippi and 26 guests