According to the official documentation from VS Code, When you click the Run button, it should directly use the python.exe from the corresponding virtual environment to execute the code. That’s how it used to work on my computer as well. However, today I noticed that the default command in Code Runner (by clicking the Run button) has changed to: I have Miniforge installed, and its conda/mamba commands usually only work properly in their own dedicated terminal window. Unless I set the default terminal to Miniforge's exclusive one, this Run button is basically useless. Even when it does work, I really dislike using conda run - I much prefer switching to the virtual environment first and then directly running python <path>.py, or alternatively executing the python.exe file from the virtual environment like I used to do. Does anyone know how to adjust this? I can't seem to find any relevant settings in the Code Runner plugin's configuration to tweak this behavior. Continue reading...