Sublime text3:安装插件SublimeREPL解决不支持input

Sublime text3:安装插件SublimeREPL解决不支持input

安装SublimeREPL

1,调用ctrl+shift+p 输入install回车;

2,输出:sublimerepl 选择安装;

3,然后tools --sublimeREPL--Python你会发现打开了一个python的shell窗口,显然这个并不是我们想要的;

4,选择好我们要执行的py文件,选择Tools -> SublimeREPL -> Python -> RUN current file,这时候已经支持输入了数据了,如图所示:

5,测试结果:

6,最后,由于每次运行程序都要执行:Tools -> SublimeREPL -> Python -> RUN current file 菜单有点麻烦,所以现在可以考虑给他创建个快捷键:

#方法:perferences -> key bindings user 中粘贴如下代码(快捷键自定义就可以,定义为F5):
[ {"keys":["f5"],
"caption": "SublimeREPL: Python - RUN current file",
"command": "run_existing_window_command", "args":
{
"id": "repl_python_run",
"file": "config/Python/Main.sublime-menu"
}}
]

#以后打开你要运行的Py程序,就可以直接按照你设置的快捷键运行;

 如下图:

作者:整合侠
链接:http://www.cnblogs.com/lizm166/p/8317791.html
来源:博客园
著作权归作者所有。商业转载请联系作者获得授权,非商业转载请注明出处。

原文地址:https://www.cnblogs.com/lizm166/p/8317791.html