Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

tempCodeRunnerFile.py problem in visual sudio

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.

like image 213
Johan Jomy Avatar asked Dec 31 '25 16:12

Johan Jomy


2 Answers

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.

like image 146
Steven-MSFT Avatar answered Jan 02 '26 07:01

Steven-MSFT


If your highlighting your code. Dont highlight it. Just run the code without highlighting any code. and it will work.

like image 39
Simo Avatar answered Jan 02 '26 08:01

Simo