Sublime Text 2 move cursor out of parenthesis, quotes, or brackets

后端 未结 12 778
囚心锁ツ
囚心锁ツ 2020-12-22 20:10

I need a fast way to make the cursor jump outside the auto wrap qoutes or other syntax elements. I don\'t want to have to reach down to my arrow keys each time, and definit

12条回答
  •  半阙折子戏
    2020-12-22 20:48

    A more complete way to make a key binding would be:

        { "keys": ["shift+space"], "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 }
            ]   
        },
    

    Assuming you want shift+space as the shortcut. Or you can change it to tab as well

    As found in http://www.sublimetext.com/forum/viewtopic.php?f=3&t=5174#p23086

提交回复
热议问题