Home Download Buy Blog Forum Support

How to skip cursor beyond autocompleted quotes, parenthesis?

How to skip cursor beyond autocompleted quotes, parenthesis?

Postby lenkite on Fri May 10, 2013 2:37 am

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!
lenkite
 
Posts: 3
Joined: Thu May 09, 2013 7:07 am

Re: How to skip cursor beyond autocompleted quotes, parenthesis?

Postby skuroda on Fri May 10, 2013 2:55 am

Try adding the following to your user keybindings.
Code: Select all
{ "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 }
    ]}
skuroda
 
Posts: 676
Joined: Fri Oct 05, 2012 8:11 am

Re: How to skip cursor beyond autocompleted quotes, parenthesis?

Postby lenkite on Fri May 10, 2013 10:47 am

Hi skuroda,

Wow..thanks so much! That works like a charm. (it may take me a while to figure out how though...)
lenkite
 
Posts: 3
Joined: Thu May 09, 2013 7:07 am


Return to Technical Support

Who is online

Users browsing this forum: No registered users and 26 guests