Skip to content

Instantly share code, notes, and snippets.

@debuggingfuture
Last active March 10, 2016 22:01
Show Gist options
  • Save debuggingfuture/5652575 to your computer and use it in GitHub Desktop.
Save debuggingfuture/5652575 to your computer and use it in GitHub Desktop.
In Sublime Text 2 to use `Cmd-Shift-F` to reindent javascript with jsFormat without affecting other format, put this in the Key Bindings :
{
"keys": ["super+shift+f"], "command": "js_format"
},
{
"keys": ["super+shift+f"], "command": "reindent"
,"context":
[{ "key": "selector", "operator": "not_equal", "operand": "source.js"},
{ "key": "selector", "operator": "not_equal", "operand": "source.json"}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment