Consider the following scenario: I have two Python scripts, the first a long-running process and the second a short-running process. I heavily use the shift
+ enter
shortcut to run code directly from my .py
files.
Currently in VS Code, I can only manage to have the interactive environment with one script. That is, if I run the first, long-running script and then open a new Python terminal window, running a line such as print('hello world')
will run in the first terminal. I want to learn how to change the shift
+ enter
so that it executes in the second, newly-opened terminal window.
I've looked at a few SO questions, namely this one, but the solutions either don't work or are not applicable to my use case.