Last active
June 9, 2018 10:07
-
-
Save eip/e2bf54f7eadd41b0b8e2df12eff7b0cb to your computer and use it in GitHub Desktop.
Sublime Text 3: keyboard shortcut for syntax (scope) specific beautify command
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[{ | |
"keys": ["super+shift+h"], | |
"command": "eip_beautify", | |
"args": {"command": "cd \"{dir}\" && js-beautify --js --replace \"{file}\""}, | |
"context": [{"key": "selector", "operand": "source.js", "operator": "equal"}] | |
}, { | |
"keys": ["super+shift+h"], | |
"command": "eip_beautify", | |
"args": {"command": "cd \"{dir}\" && js-beautify --css --replace \"{file}\" && csscomb \"{file}\""}, | |
"context": [{"key": "selector", "operand": "source.css", "operator": "equal" | |
}] | |
}, { | |
"keys": ["super+shift+h"], | |
"command": "eip_beautify", | |
"args": {"command": "cd \"{dir}\" && js-beautify --html --replace \"{file}\""}, | |
"context": [{"key": "selector", "operand": "text.html", "operator": "equal"}] | |
}, { | |
"keys": ["super+shift+h"], | |
"command": "basic_indent", | |
"context": [{"key": "selector", "operand": "text.xml", "operator": "equal"}] | |
}, { | |
"keys": ["super+shift+h"], | |
"command": "basic_indent", | |
"context": [{"key": "selector", "operand": "source.json", "operator": "equal"}] | |
}, { | |
"keys": ["super+shift+h"], | |
"command": "pep8_autoformat", | |
"context": [{"key": "selector", "operand": "source.python", "operator": "equal"}] | |
}, { | |
"keys": ["super+k", "super+p"], | |
"command": "title_case" | |
}, { | |
"keys": ["super+k", "super+i"], | |
"command": "swap_case" | |
}, { | |
"keys": ["super+k", "super+'"], | |
"command": "convert_double_quotes_to_single" | |
}, { | |
"keys": ["super+k", "super+shift+'"], | |
"command": "convert_single_quotes_to_double" | |
}] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment