Skip to content

Instantly share code, notes, and snippets.

@Saigesp
Last active April 12, 2019 18:48
Show Gist options
  • Save Saigesp/f7038209d0bad2c7c82388abf5392665 to your computer and use it in GitHub Desktop.
Save Saigesp/f7038209d0bad2c7c82388abf5392665 to your computer and use it in GitHub Desktop.
Sublime3 Shortcuts
[
{ "keys": ["ctrl+alt+b"], "command": "toggle_comment", "args": { "block": true } },
{ "keys": ["ctrl+alt+p"], "command": "autoprefixer" },
{ "keys": ["ctrl+alt+c", "ctrl+alt+o", "ctrl+alt+n"], "command": "insert_snippet", "args": {"contents": "console.log($0);"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
]
},
{ "keys": ["ctrl+alt+c", "ctrl+alt+o", "ctrl+alt+n"], "command": "insert_snippet", "args": {"contents": "console.log(${0:$SELECTION});"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
{ "keys": ["ctrl+alt+q", "ctrl+alt+r"], "command": "insert_snippet", "args": {"contents": "{% trans '$0' %}"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
]
},
{ "keys": ["ctrl+alt+q", "ctrl+alt+r"], "command": "insert_snippet", "args": {"contents": "{% trans '${0:$SELECTION}' %}"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
{ "keys": ["ctrl+alt+p", "ctrl+alt+p"], "command": "insert_snippet", "args": {"contents": "<?php $0 ?>"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
]
},
{ "keys": ["ctrl+alt+p", "ctrl+alt+p"], "command": "insert_snippet", "args": {"contents": "<?php ${0:$SELECTION} ?>"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
},
{ "keys": ["alt+keypad1", "alt+keypad7", "alt+keypad5"], "command": "insert_snippet", "args": {"contents": "«»"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
]
},
{ "keys": ["alt+keypad1", "alt+keypad7", "alt+keypad5"], "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": ["ctrl+alt+r", "ctrl+alt+p"], "command": "run_existing_window_command", "args":
{
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment