I had this problem since I started using the code runner extension. a file called tempCodeRunnerFile.py
get created and runs when I click on the run button it really annoying, I tried deleting the tempCodeRunnerFile.py
file but it keeps coming back.
Asked
Active
Viewed 2,237 times
1

Johan Jomy
- 592
- 2
- 7
- 22
-
Where is the file getting created? Why are you blanking out the filepath? – OneCricketeer Oct 11 '21 at 17:12
-
@OneCricketeer it gets created in the same file where my actual code is. – Johan Jomy Oct 12 '21 at 06:43
-
@Kunal Shah my code works fine, the error is no related to my code – Johan Jomy Oct 12 '21 at 06:44
2 Answers
3
It indicates that you have selected part of the code snippet and run it.
You can add "code-runner.ignoreSelection": true
in the settings.json file to avoid it.

Steven-MSFT
- 7,438
- 1
- 5
- 13
0
If your highlighting your code. Dont highlight it. Just run the code without highlighting any code. and it will work.

Simo
- 1
- 1