Wanna get make all your files use spaces for tabs consistently and eliminate trailing whitespace every time you save in sublime? Put this in your user preferences:

{
  "font_size": 13.0,
  "tab_size": 2,
  "translate_tabs_to_spaces": true,
  "trim_automatic_white_space": true,
  "trim_trailing_white_space_on_save": true,
  "use_tab_stops": true
}

I absolutely hate trailing whitespace in any of my code. I used to use a plugin that eliminates it when you hit a predefined keystroke, but this is much more convenient.

Also see: Adding a JS build-system to Sublime

Leave a Reply

Your email address will not be published. Required fields are marked *