首先你肯定是做好了准备工作(Package Control 和 Sublime REPL)
我在网上找了很多的方法然后发现这种方法对我有用,我也希望可以帮到你!!!
一.选择“按键绑定——用户”
二.打开复制进去这段代码
三 .代码我已经复制到这里了
[
{
“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”:[“f4”],
“caption”: “SublimeREPL: Python”,
“command”: “run_existing_window_command”,
“args”:
{
“id”: “repl_python”,
“file”: “config/Python/Main.sublime-menu”
}
}
]
这样就好了,希望可以帮助到你。