sublime自动跳出括号、单引号、双引号设置

打开Preferences->Key Bindings-User,如果已经有别的系统设置,需在大括号后加 “,” 再输入编辑内容,如下:

第一段是设置F8作为执行键;

第二段是设置自动跳出括号、单引号、双引号。

[
	
{
        "keys":["f8"],

        "caption":"SublimeREPL:Python - RUN current file",

        "command":"run_existing_window_command","args":
        {
            "id":"repl_python_run",

            "file":"config/Python/Main.sublime-menu"
        }
},

{       
        "keys": ["enter"], "command": "move", "args": {"by": "characters", "forward": true}, "context":
        [
            { "key": "following_text", "operator": "regex_contains", "operand": "^[)\\]\\>\\'\\\"\\ %>\\}\\;\\,]", "match_all": true },
            { "key": "preceding_text", "operator": "not_regex_match", "operand": "^.*\\{$", "match_all": true  },
            { "key": "auto_complete_visible", "operator": "equal", "operand": false }
        ]
    }

]

 

你可能感兴趣的:(Python)