自定义sublime text快捷键

使用自定义快捷键完成一些事情,方法是打开Preferences下的Key Bidings - User,然后添加下面的文字

1.跳出特定字符

对于自动补全的括号、引号,右手总要按一下向右光标键,很麻烦是不是,

添加下面这段代码,到时候按一下回车键就OK了

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

猜你喜欢

转载自tjmljw.iteye.com/blog/2145386