I use the PyDev console to run long scripts, and often I wish to stop in the middle of a command. In a regular python shell I press ctrl+c and it stops the command with keyboard interrupt. But in PyDev consoles it does a text copy instead.
How do I stop a command in this console without terminating it?
If you are running the scripts from an interactive console with newish PyDev (not sure which version this feature arrived) then you can press the Yellow stop to achieve what you want.
If you are simply running the script (not via the interactive console) then I recommend a feature request at PyDev. https://sw-brainwy.rhcloud.com/
来源:https://stackoverflow.com/questions/32423405/stop-a-running-command-in-pydev-console