PyDev does not 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 opened in the Python editor (I was convinced of this by opening it "Open With" → "Python Editor") and started a console session by pressing Ctrl + Enter . However, when I press F2 , nothing happens. I have to select the line that interests me and send it to the console using Ctrl + Enter .

I checked the keybinding settings in the section “Window” → “Settings” → “General” → “Keys” and I don’t see the difference between the settings for the “Run a line in the console” commands that displays on F2 and the Interactive console that displays on Ctrl + Alt + Enter . However, the second command works, and the first does not. I also tried to match the command with other keys, but that didn’t change the results at all. Any tips on how I can use this command?

+5
source share
1 answer

I had this problem. All shortcuts work except F2. I have tried many things without success. But at the end. Just restarting Eclipse solved the problem.

+2
source

Source: https://habr.com/ru/post/1213864/


All Articles