How to install VS Code for C / C++ || MinGW Install

 Hello guys in this article you are going to learn that how to download and install VS Code and the installation on MinGW for C/C++

How to setup VS Code

What Is VS Code

Visual Studio Code (VS Code) is a versatile open-source code editor developed by Microsoft, available on Windows, macOS, and Linux. It boasts a wide range of features, including a rich marketplace for extensions that enhance functionality and support various programming languages. With integrated terminal access, smart code completion through IntelliSense, and built-in debugging tools, it caters to developers across different fields, from web and backend development to data science. VS Code also offers seamless Git integration for version control and a customizable interface that allows users to tailor their experience to their preferences. Its Live Share feature facilitates real-time collaborative editing, making it ideal for team projects. With comprehensive documentation and an active community, VS Code has established itself as a favorite among developers seeking a powerful yet lightweight coding environment.

How to Download The VS Code ?

Step 1 = Firstly you have to open any web browser to install it, because we are going to install genuine version of VS CODE. Then you have to search for VS Code download. After that you will get a website of Visual Studio Code. or you can also click hear to download VS Code.


Step 2 = After downloading you have to open the .exe file and setup the VS Code. Firstly open the file then click on I agree then press the next option untill and unless you didn't found the window screen that have been shown in the step 3.

Step 3 = After doing that check all the options so it would be easier to open any folder in the VS Code easily.



Step 4 = Then you have to launch the VS Code.

Hear the installation of VS Code is successfully completed, now we are going to install the MinGW for our C / C++ programs.

What is MinGW

MinGW, short for "Minimalist GNU for Windows," is a development environment that allows programmers to create native Windows applications using the GNU Compiler Collection (GCC). It provides a set of tools, including a C and C++ compiler, along with necessary libraries, enabling developers to build and run applications on Windows without needing a complex setup. MinGW is particularly popular for its simplicity and the ability to generate lightweight executables that do not depend on external DLLs, making it a favored choice for open-source projects and cross-platform development. Its integration with various IDEs further enhances its usability for developers looking to harness the power of GNU tools in a Windows environment.


How to setup MinGW ?

So this is the one of the most important part of this article. 

Step 1 = Open any web browser and search download MinGW



Step 2 = After search you will get the link from Source Forge otherwise you can click hear to download mingw.
Step 3 =  Open the exe file and allow all the resources.
Step 4 = Then you have to select the mingw32-gcc-g++ and mingw32-gcc- objc



Step 5 = After that on top left side you will find the option of installation click on that and mark for installation.
Step 6 = Then wait for installation because it will take some time.

Now you have successfully installed the MinGW for your VS CODE. Now we have to add the path. 

How to add PATH ?

Step 1 =  So to add the path firstly you have to visit the C Drive of your machine.
Step 2 = After that you have to open the MinGW folder.
Step 3 = There you will find one bin named folder open that.
Step 4 = Now you have to copy the path of that folder by clicking the top most part.



Step 5 = Go to search menu and type Environment Variable and open that, then open environment variable at the bottom. 
Step 6 = Then open the path section
Step 7 = On right side you will find the new option click on that and paste the path you have copied.



Step 8 = Then save it

Check is your path is added or not ?

Now we added the MinGW path, but now we are going to test that is our path is successfully added or not?

Step 1 = Open the start menu and search CMD
Step 2 = Type the command as it is (copy and paste is recommended)
                gcc --version
Step 3 = If you have this type of window screen then your path had been successfully added to the machine, if any error is showing then you have done some mistake you have to follow it again.



How to install required C / C++ extensions in VS Code

Now you have successfully done all the things but one last work that is to download the C / C++ extensions for VS Code. 

Step 1  = Open the VS Code
Step 2 = On the left most side bar the last option you will find of Extensions for VS      Code.
Step 3 = In search bar you have to type C / C++
Step 4 = Then you have to download the extensions that you are viewing and highlighted in below image.




So finally you have setup for the VS Code for C / C++ at free. Now you can enjoy your programming journey and start the programming. Thanks for reading love from GEN CODE :)













Yash Ghuge

Yash Ghuge, with over five years of experience in the blogging field, is dedicated to delivering authentic and insightful content. Specializing in multi niche but mainly focus on Tech, Yash combines a passion for writing with a deep interest in coding and computer engineering. As a current student in computer engineering, Yash brings a unique, informed perspective to each post. For any inquiries or further information, please visit the contact us section. Yash is always eager to connect with readers and fellow enthusiasts. Have a great day!

Post a Comment

Previous Post Next Post