VS Code throws me to settings.json when trying to compile c++ code

Viewed 4720

I can't compile any c++ code in VS Code. Whenever I try, it throws me to the settings.json file, where I see this:

{
"python.defaultInterpreterPath": "C:\\Users\\Pavel Sankin\\AppData\\Local\\Microsoft\\WindowsApps\\python.exe",
"python.pythonPath": "C:\\Users\\Pavel Sankin\\Anaconda3"
}

and nothing else. I did install the standard C/C++ extension and tried checking out the official website for help, but there seem to be other things there. VS Code doesn't throw any errors, it just opens this file whenever I try to compile any piece of C++ code.

Any help will be much appreciated.

1 Answers

Have you had this problems before? Have you install the microsoft C++ compiler toolset? (other compiler works fine too; check VS docs) Did you open VSCode using the Developer Command Prompt?

Also check this and follow the guide.

Related