Last active
March 24, 2017 14:16
-
-
Save nissicreative/0981d6e80f9cd7bf2f0dba3f88a156d7 to your computer and use it in GitHub Desktop.
Sublime Text Keymap
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
[ | |
// Sublime Menus | |
{ "keys": ["super+k", "super+t"], "command": "title_case" }, | |
{ "keys": ["alt+super+w"], "command": "toggle_setting", "args": {"setting": "word_wrap" }}, | |
{ "keys": ["shift+alt+super+w"], "command": "wrap_lines" }, | |
// PHP Companion | |
{ "keys": ["f9"], "command": "expand_fqcn" }, | |
{ "keys": ["shift+f9"], "command": "expand_fqcn", "args": {"leading_separator": true }}, | |
{ "keys": ["f10"], "command": "find_use" }, | |
{ "keys": ["f8"], "command": "import_namespace" }, | |
{ "keys": ["shift+f12"], "command": "goto_definition_scope" }, | |
{ "keys": ["f7"], "command": "insert_php_constructor_property" }, | |
// Code Beautifyings | |
{ "keys": ["ctrl+f"], "command": "reindent" , "args": { "single_line": false }}, | |
{ "keys": ["ctrl+shift+="], "command": "alignment" }, | |
// HTML Quick Wrappers | |
{ "keys": ["ctrl+super+i"], "command": "insert_snippet", "args": {"contents": "<em>${0:$SELECTION}</em>" }}, | |
{ "keys": ["ctrl+super+b"], "command": "insert_snippet", "args": {"contents": "<strong>${0:$SELECTION}</strong>" }}, | |
{ "keys": ["ctrl+shift+d"], "command": "insert_snippet", "args": {"contents": "<div>${0:$SELECTION}</div>" }}, | |
{ "keys": ["ctrl+shift+p"], "command": "insert_snippet", "args": {"contents": "<p>${0:$SELECTION}</p>" }}, | |
{ "keys": ["ctrl+super+1"], "command": "insert_snippet", "args": {"contents": "<h1>${0:$SELECTION}</h1>" }}, | |
{ "keys": ["ctrl+super+2"], "command": "insert_snippet", "args": {"contents": "<h2>${0:$SELECTION}</h2>" }}, | |
{ "keys": ["ctrl+super+3"], "command": "insert_snippet", "args": {"contents": "<h3>${0:$SELECTION}</h3>" }}, | |
{ "keys": ["ctrl+super+4"], "command": "insert_snippet", "args": {"contents": "<h4>${0:$SELECTION}</h4>" }}, | |
{ "keys": ["ctrl+super+5"], "command": "insert_snippet", "args": {"contents": "<h5>${0:$SELECTION}</h3>" }}, | |
{ "keys": ["ctrl+super+6"], "command": "insert_snippet", "args": {"contents": "<h6>${0:$SELECTION}</h6>" }}, | |
{ "keys": ["ctrl+super+k"], "command": "insert_snippet", "args": {"contents": "<a href=\"${1:#}\">${0:$SELECTION}</a>" }}, | |
// HTML Special Characters | |
{ "keys": ["ctrl+space"], "command": "insert_snippet", "args": {"contents": " " }}, | |
{ "keys": ["ctrl+7"], "command": "insert_snippet", "args": {"contents": "&" }}, | |
{ "keys": ["ctrl+super+."], "command": "insert_snippet", "args": {"contents": ">" }}, | |
{ "keys": ["ctrl+super+,"], "command": "insert_snippet", "args": {"contents": "<" }}, | |
{ "keys": ["ctrl+enter"], "command": "insert_snippet", "args": {"contents": "<br>" }}, | |
// General/Markdown Wrappers | |
{ "keys": ["ctrl+shift+8"], "command": "insert_snippet", "args": {"contents": "*${0:$SELECTION}*" }}, | |
{ "keys": ["ctrl+shift+9"], "command": "insert_snippet", "args": {"contents": "$1(${0:$SELECTION})" }}, | |
{ "keys": ["`"], "command": "insert_snippet", "args": {"contents": "`${0:$SELECTION}`"}, "context": | |
[ | |
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, | |
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true } | |
] | |
}, | |
{ "keys": ["~"], "command": "insert_snippet", "args": {"contents": "~~${0:$SELECTION}~~"}, "context": | |
[ | |
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, | |
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true } | |
] | |
}, | |
{ "keys": ["alt+super+c"], "command": "markdown_preview", "args": {"target": "clipboard", "parser": "markdown" }}, | |
// PHP | |
{ "keys": ["ctrl+alt+super+t"], "command": "insert_snippet", "args": {"name": "Packages/User/Snippets/PHP/try-catch-block.sublime-snippet" }}, | |
{ "keys": ["alt+t"], "command": "run_phpunit_test" }, | |
{ "keys": ["alt+super+t"], "command": "run_single_phpunit_test" }, | |
// Blade | |
{ "keys": ["ctrl+shift+["], "command": "insert_snippet", "args": {"contents": "{{ ${0:$SELECTION} }}" }}, | |
{ "keys": ["alt+ctrl+shift+["], "command": "insert_snippet", "args": {"contents": "{!! ${0:$SELECTION} !!}" }}, | |
{ "keys": ["alt+ctrl+shift+/"], "command": "insert_snippet", "args": {"contents": "{{-- ${0:$SELECTION} --}}" }}, | |
// Sublime Surround | |
{ "keys": ["ctrl+alt+super+c"], "command": "surround_change" }, | |
{ "keys": ["ctrl+alt+super+d"], "command": "surround_delete" }, | |
// Change Quotes | |
{ "keys": ["ctrl+alt+super+'"], "command": "change_quotes" } | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment