等号两边自动添加括号

代码格式强迫症必备:

[
{ "keys": [","], "command": "insert", "args": {"characters": ", "}},

{ "keys": ["="], "command": "insert", "args": { "characters": " = " }, "context":
    [
        { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
        { "key": "selector", "operator": "equal", "operand": "source.python, source.lua", "match_all": true },
        { "key": "preceding_text", "operator": "regex_match", "operand": "^(([^(){}~=]*+)(\((?:(?2)|(?3))*\))?)(?1)*$", "match_all": true }
    ]
},

{ "keys": ["f1"], "command": "reindent","args": {"single_line": false}} , 

]

{
"hot_exit": false,
"open_files_in_new_window": false,
"preview_on_click": false,
"remember_open_files": false,
}

原文地址:https://www.cnblogs.com/xiangnan/p/5531956.html