Execute Python line of code in Eclipse

2019-07-25 13:53发布

问题:

I'm using Pydev with Eclipse. Is it possible to execute a line of python code or a text selection with my IDE? Thanks!

回答1:

Pydev documentation is available here For you specific issue I would suggest using the 'Interactive Console' built into PyDev the how-to is located here

Also, if you're looking for additional short-cuts for PyDev you can look here

Regards

Nishant



回答2:

CTRL+ALT+ENTER will execute the selected lines.