首页 > 代码库 > SublimeText个性化快捷键设置

SublimeText个性化快捷键设置

一、光标跳出括号

在编写js函数的时候,输入函数名和括号的时候,要想光标跳出括号还得手动的按left键。离两个手的区域比较远,可自行配置

preferences - keys bindings - user

{ "keys": ["enter"], "command": "move", "args": {"by": "characters", "forward": true}, "context":  
    [  
        { "key": "following_text", "operator": "regex_contains", "operand": "^[)\\]\\>\\‘\\\"]", "match_all": true },  
    ]     
  },  

回车即可跳出括号

SublimeText个性化快捷键设置