Repository navigation
Replies: 2 comments
|
Have you tried selecting Run Python File from the dropdown again to see if the main button switches back? Also, do you have the Code Runner extension installed? It has its own run command, so it might be worth temporarily disabling it to check whether it makes any difference. If the issue persists, sharing your VS Code and Python extension versions could help narrow it down. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
My question is about the default behavior of the Run (triangle) button in the top-right corner of VS Code when running Python files.
Initially, clicking the Run button executes “Run Python File” by default. However, if I use the dropdown menu to select “Run Python File in Dedicated Terminal”, and then repeatedly click the Run button (after selecting it from the dropdown a few times), I notice that the default behavior changes.
Specifically, after repeating this process a few times, clicking the Run button no longer executes “Run Python File” but instead runs “Run Python File in Dedicated Terminal”.
Is this the expected behavior in VS Code, or is it caused by some configuration? Is there a way to keep the default action always as “Run Python File” without being overridden by recent selections?
All reactions