Sublime Forum

How to skip cursor beyond autocompleted quotes, parenthesis?

#1

Hi,
I am using ST3. I am used to eclipse where if the editor inserts quotes/braces/etc, one can always skip past them by hitting Tab. This unfortunately doesn’t work in Sublime and can be very distracting while typing. Is there some preference that one can enable to jump past autofilled closing characters ?

Thanks!

0 Likes

#2

Try adding the following to your user keybindings.

{ "keys": "tab"], "command": "move", "args": {"by": "characters", "forward": true}, "context": { "key": "selection_empty", "operator": "equal", "operand": true }, { "key": "preceding_text", "operator": "not_regex_match", "operand": ":space:]]*", "match_all": true }, { "key": "following_text", "operator": "regex_contains", "operand": "^\"'\\)\\}\\]]", "match_all": true }, { "key": "auto_complete_visible", "operator": "equal", "operand": false }, { "key": "has_next_field", "operator": "equal", "operand": false } ]}

0 Likes

#3

Hi skuroda,

Wow…thanks so much! That works like a charm. (it may take me a while to figure out how though…)

0 Likes