问题
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:
- select a few lines of code
- 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