sublime中使用terminus编译运行py文件
一般使用默认的ctr+b运行时,没有终端运行窗口,所以我选择使用terminus。由于使用了python中的-i参数,方便查看脚本执行完成后的内容输出。所以还需要手动关闭terminus窗口,定义快捷键“ctrl+w”
在Key Bindings中输入以下内容:
[ // { "keys": ["tab"], "command": "move", "args": {"by": "characters", "forward": true}, "context": // [ // { "key": "following_text", "operator": "regex_contains", "operand": "^[)\\]\\>\\'\\\"\\}]", "match_all": true } // ] // }, { "keys": ["ctrl+b"], "command": "toggle_terminus_panel", "args": { "cwd" :"${file_path:${folder}}", "cmd" : [ "python","-i","$file" ], }, }, { "keys": ["ctrl+w"], "command": "terminus_close", "context": [{ "key": "terminus_view"}] } ]
posted on 2020-07-03 12:48 blackangeldsf 阅读(1312) 评论(0) 收藏 举报
浙公网安备 33010602011771号