Sublime Text 3软件由于每次运行程序都要执行:Tools -> SublimeREPL -> Python -> RUN current file 菜单有点麻烦,所以现在可以考虑给他创建个快捷键
依次点击:perferences ------ key bindings user,将下列代码粘贴
{"keys":["f2"],
"caption": "SublimeREPL: Python - RUN current file",
"command": "run_existing_window_command", "args":
{"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"}}
然后ctrl+s保存就可以了。(红色的F2是设置的快捷键,也可以选择其他键当成快捷键)
再补充个分栏的快捷键,步骤同上,代码如下{"keys":["f1"],
"caption": "SublimeREPL: Python",
"command": "run_existing_window_command", "args":
{"id": "repl_python",
"file": "config/Python/Main.sublime-menu"}}
如果两个同时设置,注意两个代码之间要用“,”隔开(不包含双引号)
时间: 2024-10-25 19:47:31