Skip to content

Instantly share code, notes, and snippets.

@craiggists
Last active November 30, 2023 11:57
Show Gist options
  • Save craiggists/2268146 to your computer and use it in GitHub Desktop.
Save craiggists/2268146 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" }
]
@moyo18
Copy link

moyo18 commented Feb 27, 2018

will this work for Windows?

@bobsbakail
Copy link

Thank you so much! I had a hard time but this cleared it right up. Kinda late but just to note: Yes, it does work on Windows.

@sigalasunda
Copy link

Thanks!

@IceMan391
Copy link

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment