How to create projects for C/C++ in VS code?

1. Install C++ extension, this adds language support for C/C++ and includes debugging and suggestive code blocks(intellisense) for the language.
made by: @Microsoft
2. Check if you have a compiler, MinGW is popular for windows OR If you boast a Mac, clang is the way to go.
Google either of these for installation.
Use the command gcc --version in powershell to verify the installation of MinGW, if you do not have it installed, then ⬇️
3. Install the C++ project generator extension in VS code
creator: danielpinto8zz6
4. The heavy lifting is almost done, Now , in the main VS code command palette(ctrl+shift+p) search create C++ project.
4. Follow the create c++ project, from right to left (images)
5. Open> folder from file menu in VS code, then select the trial project folder.
6. Open the main.cpp file from the src folder the trial project directory(folder).
There you have it, a C++ project and the main file is now created and opened in VS code.🥳
You can follow @itsjustpiyush.
Tip: mention @twtextapp on a Twitter thread with the keyword “unroll” to get a link to it.

Latest Threads Unrolled: