讓sublime支持帶input()的python程序運(yùn)行
看了很多教程,都不全,補(bǔ)全一下。
主要參考: http://m.itdecent.cn/p/dd36e4af2b82
ctrl+shift+p,調(diào)出包管理器:輸入install package
輸入sublimeREPL,點擊安裝
-
運(yùn)行:
點擊tool,找到sublimeREPL,然后選擇Python - RUN current file
-
設(shè)置快捷鍵:
- ctrl+shift+p——install package——安裝ChainOfCommand
- preferences->Key Binding-User中插入代碼
[ { "keys":["f5"], "caption":"SublimeREPL: save & Python - RUN current file", "command":"chain", "args": {"commands":[ ["save"], [ "run_existing_window_command",{"id": "repl_python_run","file": "config/Python/Main.sublime-menu"}] ] } }, { "keys": ["ctrl+n"], "command": "cancel_build" }, ]