Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyDev doesn't execute shortcut to send current line to console

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?

like image 968
Daniel Lee Avatar asked Nov 01 '22 09:11

Daniel Lee


1 Answers

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.

like image 127
patapouf_ai Avatar answered Nov 09 '22 16:11

patapouf_ai