Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save webspectyler/167671d01fbdba80976d99d62bfc9eae to your computer and use it in GitHub Desktop.
Save webspectyler/167671d01fbdba80976d99d62bfc9eae to your computer and use it in GitHub Desktop.
SublimeText: Tab to move cursor out of parentheses, quotes, brackets
// Original by C0D312
// I added the single quote and curly brace to the regex.
// http://www.sublimetext.com/forum/viewtopic.php?f=3&t=5174
//
// Add the following to your user keybindings:
[
{ "keys": ["tab"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
[
{ "key": "following_text", "operator": "regex_contains", "operand": "^[)}'\"\\]]", "match_all": true },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false }
]
},
{ "keys": ["ctrl+t"], "command": "side_bar_new_file2" },
{ "keys": ["f2"], "command": "side_bar_rename" },
{ "keys": ["ctrl+alt+f"], "command": "side_bar_find_files_path_containing" },
{ "keys": ["f12"], "command": "reindent" },
{ "keys": ["super+k", "super+t"], "command": "title_case" },
{ "keys": ["super+v"], "command": "paste_and_indent" },
{ "keys": ["super+shift+v"], "command": "paste" }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment