How to prevent saving changes when running code in VS Code (Python)?

48 Views Asked by At

Whenever I add or change code in a script and press Ctrl-F5, it automatically saves it. I would like to prevent this. I checked that Auto Save is off, and that Save Before Run in Settings is also off, but it still automatically saves the script before running it.

1

There are 1 best solutions below

3
bona_rivers On

I don't really think you can, since it needs to be a file that it can run before running it.