I want to run main.py in VS Code with 1 click + without it being the active file + without opening debug + without shortcuts. Just one simple mouse click.
I tried different solutions. The best I can get it is 2 clicks using mouse and keyboard with launch.json
The problem is the debug is being used. I just want it to run main fast, without the overhead of debug. If I run main as the active file, it runs instantly. If I run it via debug, it takes a few seconds to load.
Here is how I configured my launch.json
{
"version": "0.2.0",
"configurations": [
{
"name": "Run Main",
"type": "python",
"request": "launch",
"program": "${workspaceFolder}/main.py",
"console": "integratedTerminal"
}
]
}