Home > other >  Viusal studio code can't run any programing language
Viusal studio code can't run any programing language

Time:11-16

My vscode can't run any code.I've been trying to fix it for 2-3 days now but that doesn't work.I don't know it about I try to setup c/c in vscode about 15 days ago that time it work it can c c python however this few day I back to code something and have found can't run any code.

can anyone please suggested solutions.I read previous post about this before but it not the same when I try to run code noting happening and no error.

and about python files must call file like this for run and that file must in Drive C.It unlike normal just press F5 or click runcode then it run.

I want to fix it like before.It mean make it to show the result of my code in visual studio.

CodePudding user response:

Trial 1: Try downgrading your vs-code version and check if problem still persists. Trial 2: Assuming you don't have code runner, Try installing code runner extension in vs-code and use that for running your program

CodePudding user response:

If you can't run any code inside vscode it's most likely that the lack of needed extensions causing this problem, you can download them by going to extension menu by " ctrl shift x " and if you are connected to internet, the vscode must show recommended extensions for you; About the problem that you can't run a python file outside of C drive, must say that the anonymity of your python executor to the CMD causing this problem, the easiest way to fix is to uninstalling your python executor by its own installer ( the setup.exe file which you installed python with it can uninstall python too ) and installing it again with this difference that you must tick the " add to environment variables " option at the beginning of the installation, then you may be able to run your python file everywhere with this command:

python example.py

At installing c/c extension you may go to the extension you downloaded and you may see under the extension name another c/c extension, install it too, to make intellisense and built-in c/c code execution enabled, download Microsoft's c/c extension for the best. May this help you!

  • Related