码迷,mamicode.com
首页 > 其他好文 > 详细

Sublime Text 3运行程序以及分栏快捷键的设置

时间:2017-08-01 23:12:12      阅读:210      评论:0      收藏:0      [点我收藏+]

标签:补充   color   tool   包含   user   设置   and   config   man   

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

 

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

Sublime Text 3运行程序以及分栏快捷键的设置

标签:补充   color   tool   包含   user   设置   and   config   man   

原文地址:http://www.cnblogs.com/xisheng/p/7270693.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!