Sublime Text 3编辑器的SublimeRPEL快捷键设置

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"}}

 

如果两个同时设置,注意两个代码之间要用“,”隔开(不包含双引号)

posted @ 2017-08-01 21:07  希声lx  阅读(995)  评论(0编辑  收藏  举报