Fortunately, Visual Studio Code has a little terminal you can use to run commands without needing to swap between windows.
The Python team at Microsoft is continuing its overhaul of environment management in Visual Studio Code, with the August 2025 release advancing the controlled rollout of the new Python Environments ...