Sublimetext2 用于跳过升华文本2中自动配对结束字符的键绑定设置2

Sublimetext2 用于跳过升华文本2中自动配对结束字符的键绑定设置2,sublimetext2,key-bindings,settings,Sublimetext2,Key Bindings,Settings,我希望能够让光标移过autopair结尾字符,以便继续键入代码 我是升华文字的能手。我在这里查看了SO,发现了使用这种代码类型的代码(代码段): 然后我向我的Default(Windows)sublime keymap--User文件中添加了如下内容: //Tab skips to end of autopaired characters { "keys": ["tab"], "command": "move", "args": {"by": "characters", "forward

我希望能够让光标移过autopair结尾字符,以便继续键入代码

我是升华文字的能手。我在这里查看了SO,发现了使用这种代码类型的代码(代码段):

然后我向我的
Default(Windows)sublime keymap--User
文件中添加了如下内容:

//Tab skips to end of autopaired characters
    { "keys": ["tab"], "command": "move", "args": {"by": "characters", "forward": true},
      "context":[

       ]
    }
当我按下“tab”键使光标移过关闭的autopair时,光标移动到tab停止(默认情况下添加4个空格),它不会像按箭头键那样“向前”移动

如何使用tab键或其他键使光标向前移动?我在这里遗漏了什么/做错了什么?我不想使用箭头键,因为这样做不是从主键自然击键(特别是取决于用户键盘)。谢谢

实际操作正确您刚刚删除了
上下文
键数组,它有效地告诉Sublime Text您永远不希望
选项卡
将光标向前移动一个字符。使用询问者的完整密钥绑定:

{ "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 } 
    ] 
},

您可以在。

量角器忍者网站上阅读有关键绑定和上下文的更多信息,谢谢您的帮助!我不知道为什么当我试图用“@”符号前缀来回复帖子时,它不起作用,我总是要硬编码用户名。@Chris22好听!当
user
恰好是您所评论内容的作者时,堆栈溢出条带
@user
标记。很多人不喜欢这本书,请阅读更多细节。
{ "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 } 
    ] 
},