Error with Visual Studio Code [SOLVED]

EDIT: Solved! I’ve added folder System32 to my environment.

Hello, I’ve installed Visual Studio Code in order to code in C++, according to the course that I’m doing. But, the problem is that when I change settings.json file to execute Developer Command Prompt for VS 2019 it gives me an error when I try to execute terminal.

Here it is the error:

Sem%20t%C3%ADtulo

Does anyone can help me?

Here it is my settings.json

{
    "terminal.integrated.shell.windows": "cmd.exe",
    "terminal.integrated.shellArgs.windows": [
        "/k", "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\BuildTools\\Common7\\Tools\\VsDevCmd.bat"
    ],
    "C_Cpp.updateChannel": "Insiders"
}

Try the full path of cmd which you can use where to get e.g.

where cmd

prints “C:\Windows\System32\cmd.exe” for me.

Prints out:

C:\Windows\System32\cmd.exe

Sorry, I meant to say to use that in place of just CMD I.e.

terminal.integrated.shell.windows": "C:\\Windows\\System32\\cmd.exe",
1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms