Tag Archives: Sublime Text

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

These are the notes from my presentation for the new class at Hack Reactor.  I know the time constraints make it tough to answer everything, so feel free to ask here.

Choose your own talk

  • How to exit or save & exit VIM
  • How to enable/disable VIM mode in Sublime
  • Sublime short-cuts in general
  • Multi-select
  • Strip out HTML
  • How to learn in general
  • Build JS from Sublime

(more…)

Frustratingly, the Sublime Text editor doesn't set up a build system for JavaScript the way it does for Ruby and some other languages. Fortunately, it's an easy problem to fix. Assuming your JS interpreter is Node.js, these are the steps to set it up:

(more…)