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

 

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

相关文章:

  • 2021-07-29
  • 2021-10-23
  • 2021-12-07
  • 2022-12-23
  • 2021-12-10
  • 2021-12-27
  • 2021-10-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-07-24
  • 2021-07-27
  • 2021-05-26
  • 2022-02-02
相关资源
相似解决方案