1. 菜单Preferences -> Browse Packages,打开安装组件所在的文件夹,进入文件夹Data\Packages\SublimeREPL\config\Python,打开文件Default.sublime-commands,复制如下代码
{
"caption": "SublimeREPL: Python - RUN current file",
"command": "run_existing_window_command", "args":
{
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"
}
},
2. 菜单Preferences -> Key Bindings,在右侧窗口粘贴步骤1中的代码,并添加一个快捷键
{ "keys": ["ctrl+k"],
"caption": "SublimeREPL: Python - RUN current file",
"command": "run_existing_window_command",
"args": {
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"
}
},