Created
September 11, 2018 10:33
-
-
Save denisbouquet/aab60632205e07776a74a0b8122be42e to your computer and use it in GitHub Desktop.
Sublime Text - personal key binding
This file contains 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
[ | |
// br enter | |
{ | |
"keys": ["shift+enter"], "command": "insert_snippet", "args": {"contents": "<br />"}, "context": | |
[ | |
{ | |
"operand": "text.html", | |
"operator": "equal", | |
"match_all": true, | |
"key": "selector" | |
} | |
] | |
}, | |
// echo php | |
{ | |
"keys": ["super+e"], "command": "insert_snippet", "args": {"contents": "<?php echo $1; ?>"}, "context": | |
[ | |
{ | |
"operand": "text.html", | |
"operator": "equal", | |
"match_all": true, | |
"key": "selector" | |
} | |
] | |
}, | |
// console log | |
{ | |
"keys": ["super+e"], "command": "insert_snippet", "args": {"contents": "console.log('=== $SELECTION $TM_FILENAME [$TM_LINE_NUMBER] ===', $SELECTION);${0}"}, "context": | |
[ | |
{ | |
"operand": "source.js", | |
"operator": "equal", | |
"match_all": true, | |
"key": "selector" | |
} | |
] | |
}, | |
// other | |
{ "keys": ["super+shift+down"], "command": "duplicate_line" }, | |
{ "keys": ["super+u"], "command": "upper_case" }, | |
{ "keys": ["super+l"], "command": "lower_case" }, | |
{ "keys": ["alt+up"], "command": "swap_line_up" }, | |
{ "keys": ["alt+down"], "command": "swap_line_down" }, | |
{ "keys": ["super+alt+m"], "command": "minify" } | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment