VSCode — How can I change the run configuration?
Question:
I am working with a single python file. The first time I launched it, VSCode prompted me to choose a run configuration, and I accidentally chose Module instead of Python File. Now every time I click Run I get the error python.exe: No module named enter-your-module-name
.
I want to just change the run config to run as a normal python file.
I didn’t have a folder opened, just this single file. In my searches for how to fix this I saw people say "delete your launch.json file", but I don’t have one. What can I do?
Answers:
I am working with a single python file. The first time I launched it, VSCode prompted me to choose a run configuration, and I accidentally chose Module instead of Python File. Now every time I click Run I get the error python.exe: No module named enter-your-module-name
.
I want to just change the run config to run as a normal python file.
I didn’t have a folder opened, just this single file. In my searches for how to fix this I saw people say "delete your launch.json file", but I don’t have one. What can I do?