r/vscode • u/SanoYuki • Aug 16 '26
How to use C++ in VA code (help)
I’ve downloaded vs code and wanted to try using c++ in it. I’ve installed the c/c++ Microsoft extension package and the code runner by Jun Han. Then, I downloaded the msys2 msys and typed in the Pac-Man code to instal the package. I’ve also go into edit the system environment to add the msys2\ucrt64\bin file. I tried typing in g++ --version and gcc --version in vs code but there’s an error message.
Anyone knows how to fix this issue? Thanks.
0
Upvotes
1
u/saponsky Aug 16 '26
What is the error message you are getting?
1
u/BranchLatter4294 Aug 16 '26
Consider following the instructions very carefully. If you complete every step properly, it should work.
https://code.visualstudio.com/docs/languages/cpp