Sublime Text 2-在解释器中运行选定的python代码 [英] Sublime Text 2 - running selected python code in the interpreter

查看:153
本文介绍了Sublime Text 2-在解释器中运行选定的python代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Sublime Text编辑器中编辑python脚本时,我想逐行运行该脚本,或者在嵌入式解释器中逐个块地运行该脚本.

是否有一种方便的方法来做到这一点?对我来说,完美的方式是:

  1. 选择几行代码
  2. 点击快捷方式,该快捷方式将在解释器中运行所选的代码

解决方案

我认为有两种选择,一种可以使用PdbSublimeTextSupport,可在此处找到: https://github.com/wuub/SublimeREPL

While editing a python script in the Sublime Text editor, I would like to run the script line by line, or block after block in the embedded interpreter.

Is there a convenient way how to do that? Perfect way for me would be:

  1. select a few lines of code
  2. hit a shortcut, which will run the selected code inside the interpreter

解决方案

There are two choices I think, one can be using PdbSublimeTextSupport, available here: http://pypi.python.org/pypi/PdbSublimeTextSupport

Or you can try SublimeREPL, that can run Python code: https://github.com/wuub/SublimeREPL

这篇关于Sublime Text 2-在解释器中运行选定的python代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆