Skip to content

Instantly share code, notes, and snippets.

@ktraff
Last active June 3, 2021 19:18
Show Gist options
  • Save ktraff/5111658 to your computer and use it in GitHub Desktop.
Save ktraff/5111658 to your computer and use it in GitHub Desktop.
Tab key to escape parentheses, quotes, or brackets in Sublime Text
// tab escape parenthesis, quotes, etc...
{ "keys": ["tab"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
[
{ "key": "preceding_text", "operator": "regex_contains", "operand": "[^ \t]+", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^[)'\"\\]]", "match_all": true },
{ "key": "auto_complete_visible", "operator": "equal", "operand": false },
// prevent tab escape when cycling through snippet fields
{ "key": "has_next_field", "operator": "equal", "operand": false }
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment