Skip to content

Instantly share code, notes, and snippets.

@logicmason
Last active December 27, 2015 08:39
Show Gist options
  • Save logicmason/7298453 to your computer and use it in GitHub Desktop.
Save logicmason/7298453 to your computer and use it in GitHub Desktop.
My Sublime Text 2 user preferences will automatically trim trailing whitespace on every save, and the Node.js build system allows running JavaScript files by hitting command-b. If your Node installation is in a different location you may have to change the path in the "cmd" line.
{
"cmd": ["/usr/local/bin/node", "$file", "$file_base_name"],
"working_dir": "${project_path:${folder}}",
"selector": "*.js"
}
{
"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
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment