Vscode: always running the same python file when pressing the run button
07:35 22 Nov 2022

By default the run button always runs the file you're currently viewing, and it's annoying because most of the time I don't want that: I'll be editing another file and then want to run my main.py file, so instead I have to go in the main file and then execute it. How can I change this? I tried looking online but couldn't find anything useful.

python visual-studio-code