[转]关于Sublime的repl设置
来源:互联网 发布:微分销系统源码开发 编辑:程序博客网 时间:2024/06/04 19:04
全是转的,出处不详。
SublimeREPL
针对上面的两个问题,我找到了SublimeREPL插件,可以用于运行和调试一些需要交互的程序,同时在Win 7和Win 8.1下面都能正常工作。
比较棒的是这个插件可以支持多种语言,而对于Python也支持多种运行模式,我比较常用到的是Python和Python - RUN current file 。
SublimeREPL添加快捷键
SublimeREPL安装之后没有快捷键,每次运行程序必须用鼠标去点工具栏,有些不爽,所以需要给SublimeREPL添加快捷键。
这里可以看到所有Python方法的名称及id,根据此可以自定义用户快捷键,在偏好–键绑定–用户中输入:
[ {“keys”:[“f5”],
“caption”: “SublimeREPL: Python - RUN current file”,
“command”: “run_existing_window_command”, “args”:
{
“id”: “repl_python_run”,
“file”: “config/Python/Main.sublime-menu”
}}
]
本文仅定义了Python - RUN current file的快捷键,我在这里使用的是F5,可以根据自己的需要进行灵活的调整。
[
{
“caption”: “SublimeREPL: Python”,
“command”: “run_existing_window_command”, “args”:
{
“id”: “repl_python”,
“file”: “config/Python/Main.sublime-menu”
}
},
{
“caption”: “SublimeREPL: Python - PDB current file”,
“command”: “run_existing_window_command”, “args”:
{
“id”: “repl_python_pdb”,
“file”: “config/Python/Main.sublime-menu”
}
},
{
“caption”: “SublimeREPL: Python - RUN current file”,
“command”: “run_existing_window_command”, “args”:
{
“id”: “repl_python_run”,
“file”: “config/Python/Main.sublime-menu”
}
},
{
“command”: “python_virtualenv_repl”,
“caption”: “SublimeREPL: Python - virtualenv”
},
{
“caption”: “SublimeREPL: Python - IPython”,
“command”: “run_existing_window_command”, “args”:
{
“id”: “repl_python_ipython”,
“file”: “config/Python/Main.sublime-menu”
}
}
]
- [转]关于Sublime的repl设置
- sublime下REPL的安装及python运行
- 关于使用repl 替换时碰到的问题
- 关于使用repl 替换时碰到的问题
- 关于用sublime text直接编译python的设置
- 关于Sublime的初步高亮设置问题
- C#的CSREPL-REPL
- C#的CSREPL-REPL
- C#的CSREPL-REPL
- C#的CSREPL-REPL
- C#的CSREPL-REPL
- C#的CSREPL-REPL
- C#的CSREPL-REPL
- C#的CSREPL-REPL
- C#的CSREPL-REPL
- C#的CSREPL-REPL
- C#的CSREPL-REPL
- C#的CSREPL-REPL
- Ehcache(06)——监听器
- IAR 的一个警告546
- 在单片机或者ARM程序中定义数据结构遇到的问题之一
- BZOJ2182: [Spoj1479]The GbAaY Kingdom最小直径生成树
- Java中的包装类
- [转]关于Sublime的repl设置
- Ehcache(07)——Ehcache对并发的支持
- 模式识别---绪论
- 如何为网站选择支付接口
- c++实验3作业
- Ehcache(08)——可阻塞的Cache——BlockingCache
- C++虚析构函数的作用
- frameset
- 使用九宫格来调整图片