How to properly execute selection in CMD Terminal #17443
|
Sometimes I like to run my Python code line by line, in Spyder we have the F9 shortcut for this, in VSCode I tried to put this feature in the Ctrl + Enter key binding: This kind works. It sends the lines to the terminal, but it does not execute. It seems to insert a new line right above the line codes and for this I have to manually focus the terminal and then press Enter again to execute the lines. My problem is not with keybinding, I guess, but with the terminal. The selected lines are not execute immediately, instead they keep waiting for my ENTER. Is this the expected behavior? |
Answered by
brettcannon
Sep 17, 2021
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

It's an IPython quirk, so yes it's "expected" as much as it's known to occur. See #17172 .