用Tab摆脱括号和括号

问题是,您必须使用箭头或宏才能跳出括号,方括号,大括号,单引号和双引号。

jacky0212 回答:用Tab摆脱括号和括号

我找到的简单解决方案

[VSCode] ,有一个扩展名为 TabOut ,安装(完成)。

[SublimeText3] ,我们必须对键绑定进行一些更改 首选项>键绑定 将下面的代码段复制并粘贴到右侧窗格中,保存并关闭此窗口。 (已测试并且可以使用✌)

[
    { "keys": ["("],"command": "insert_snippet","args": {"contents": "($1)$0"},"context":
    [
      { "key": "setting.auto_match_enabled","operator": "equal","operand": true },{ "key": "selection_empty","operand": true,"match_all": true },{ "key": "following_text","operator": "regex_contains","operand": "^(?:\t| |\\)|]|;|\\}|$)","match_all": true }
    ]
},{ "keys": ["{"],"args": {"contents": "{$1}$0"},"context":
        [
            { "key": "setting.auto_match_enabled","operand": "^(?:\t| |\\)|]|\\}|$)","match_all": true }
        ]
    },{ "keys": ["["],"args": {"contents": "[$1]$0"},"context":
    [
        { "key": "setting.auto_match_enabled",{ "keys": ["\""],"args": {"contents": "\"$1\"$0"},"operand": "^(?:\t| |\\)|]|\\}|>|$)",{ "key": "preceding_text","operator": "not_regex_contains","operand": "[\"a-zA-Z0-9_]$",{ "key": "eol_selector","operator": "not_equal","operand": "string.quoted.double - punctuation.definition.string.end",{ "keys": ["'"],"args": {"contents": "'$1'$0"},"operand": "['a-zA-Z0-9_]$","operand": "string.quoted.single - punctuation.definition.string.end",]
本文链接:https://www.f2er.com/2691636.html

大家都在问