- Preferences-->Browse 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"
}
- Preferences-->Key Bindings User,添加以下内容:
{
"keys": ["f5"], //这行是自己添加的
//以下是刚刚复制的内容
"caption": "SublimeREPL: Python - RUN current file",
"command": "run_existing_window_command",
"args":
{
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"
}
},
好了。敲黑板了敲黑板了!!!
"keys": ["f5"]
这里这个f5
必须是小写奥!,写成F5
是无效的奥。
我找了一晚上原因。。。