I am trying to set up a local development environment for practicing C++. I have installed Visual Studio Code and Microsoft Visual Studio 2022, and the MSVC compiler.
I was going through the steps outlined in the welcome guide in VS Code, but I cannot get VS Code to relaunch through the Developer Command Prompt with the ‘code’ command. The prompt gives back:
‘code’ is not recognized as an internal or external command,
operable program or batch file.
If it’s at all related, I have VS Code installed on a different drive from C:.
If there is anyone out there savvy with setting this up, I would really appreciate your insight.
Thanks,
I tried running the ‘code’ command in the Developer Command Prompt for VS 2022, but I am getting the error:
‘code’ is not recognized as an internal or external command,
operable program or batch file.
I thought that perhaps it had something to do with not having a compiler set up, so I installed Microsoft Visual Studio Build Tools, and retried the command. It did not seem to have an effect.
ObeyTheCode34 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.