Python 安装sublimeREPL 插件并设置快捷键

屠晟睿
2023-12-01

https://github.com/HBLong/channel_v3_daily 换源

 

安装插件sublimeREPL
然后tool--sublimeREPL--Python--run current file
每次都点太麻烦了,可以自己设置下快捷键,在key bindigs

 

[
    {
            "keys": ["f5"],//这是自己设的快捷键       “” 
            "command": "run_existing_window_command", 
            "args":
            {
                "id": "repl_python_run",
                "file": "config/Python/Main.sublime-menu"
            }
    }
]

 


[
{"keys": ["f5"],"command": "repl_open", 
"caption": "Python - RUN current file", 
"id": "repl_python_run", 
"mnemonic": "R", 
"args": { 
"type": "subprocess", 
"encoding": "utf8", 
"cmd": ["python", "-u", "$file_basename"], 
"cwd": "$file_path", 
"syntax": "Packages/Python/Python.tmLanguage", 
"external_id": "python", 
"extend_env": {"PYTHONIOENCODING": "utf-8"} 


]

 类似资料: