Well, this is a PyDev function, so it will only work if you open .py files with the PyDev editor (i.e. in the settings> general> editors> file associations check that '* .py' is marked to open with " Python Editor "- for PyDev - and not" Python Editor for LiClipse ").
Alternatively, you can right-click the file and select "open with> Python Editor".
After that, Ctrl + Alt + Enter should work for you (note that in the latest version Ctrl + Alt + Enter really opens to open the editor, but F2 is the recommended way to send lines by line to the console ... For more details see http: // pydev.org/manual_adv_interactive_console.html .
source share