Sublime Text 2 - running selected python code in the interpreter

二次信任 提交于 2019-12-08 14:56:13

问题


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

回答1:


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



来源:https://stackoverflow.com/questions/13495494/sublime-text-2-running-selected-python-code-in-the-interpreter

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!