Skip to content

Instantly share code, notes, and snippets.

@AlexPashley
Created July 3, 2013 22:05
Show Gist options
  • Save AlexPashley/5923280 to your computer and use it in GitHub Desktop.
Save AlexPashley/5923280 to your computer and use it in GitHub Desktop.
JSON: Sublime Text 2 - Key Bindings
// hints
/*
# Ctrl + / # | comment line
# Ctrl + alt + x # | prefix css
# Ctrl + Shift + K # | Delete line
# Ctrl + Shift + a # | select text in <HTML> tag <p>[here]</p>
# Ctrl + ALT + M # | MINIFY SELECTED TEXT
*/
[
// swap lines
{ "keys": ["alt+shift+up"], "command": "swap_line_up" },
{ "keys": ["alt+shift+down"], "command": "swap_line_down" },
// copy lines
{ "keys": ["ctrl+shift+up"], "command": "run_macro_file", "args": {"file": "Packages/Default/Delete Line.sublime-macro"} },
{ "keys": ["ctrl+shift+down"], "command": "duplicate_line" },
// indentation
{ "keys": ["alt+shift+left"], "command": "unindent" },
{ "keys": ["alt+shift+right"], "command": "indent" },
// console
{ "keys": ["`"], "command": "show_panel", "args": {"panel": "console", "toggle": true} },
// new file
{ "keys": ["n", "n"], "command": "advanced_new_file" },
// sFTP
{ "keys": ["ctrl+shift+u"], "command": "sftp_upload_file" },
// wrap TAG
{ "keys": ["ctrl+t"], "command": "insert_snippet", "args": { "name": "Packages/XML/long-tag.sublime-snippet" } },
// function list
{ "keys": ["ctrl+r"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@function "} },
// github gist
{ "keys": ["ctrl+r"], "command": "show_overlay", "args": {"overlay": "goto", "text": "@function "} },
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment