According to this question and the PyDev documentation on the interactive console, pressing F2 should send the current line from the PyDev editor to the Python console.
I have a Python file open in the Python editor (I made sure of this by opening it "Open With" --> "Python Editor") and have started a console session by pressing Ctrl+Enter. Nonetheless, when I press F2, nothing happens. I have to select the line I'm interested in and send it to the console with Ctrl+Enter.
I've checked my keybinding options under "Window" --> "Preferences" --> "General" --> "Keys" and am unable to see any differences between the settings for the commands "Execute line in console", which is mapped to F2, and "Interactive Console", which is mapped to Ctrl+Alt+Enter. However, the second command works whereas the first does not. I've also tried mapping the command to other keys, but that hasn't changed the results at all. Any tips on how I can use this command?
I had that problem. All shortcuts worked except F2. I tried many things without success. But in the end. Simply restarting Eclipse solved the problem.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With