转载:
html
若是是想在sublime里要python shell那种交互或者run module F5 F5 F5下这种效果的话,仍是挺容易实现的,windows下的:
1. 打开Sublime text 3 安装package control
Sublime Text 3 安装Package Control
python
2. 安装 SublimeREPLshell
Ctrl+shift+p 键入 install packageswindows
稍等片刻后 键入 SublimeREPL 安装便可ide
经过选项Tools->SublimeREPL->Python就能够看到效果了spa
3. 键位绑定htm
固然每次经过Tools->SublimeREPL->Python这样的方式比较繁琐blog
将这样的操做和一个按键如F1绑定后,就会方便不少啦get
e.g.打开Preferences->Key Bindings-User,复制一下代码:it
[{"keys":["f1"], "caption": "SublimeREPL: Python - RUN current file", "command": "run_existing_window_command", "args": {"id": "repl_python_run","file": "config/Python/Main.sublime-menu"} }]
Ctrl+s下就行了~