# C++: Getting Started

Hello there! In today's blog, we will learn how to gear up to start learning C++ or essentially any other programming language. If you want to run all your programs using VS code, tag along for a step-by-step guide to setting up and running the VS code app.

The process includes the following:

1. Downloading MinGW
    
2. Steps to install Visual Code Studio
    

## Downloading MinGW

We will start by downloading a compiler, MinGW, which will translate your code from C++ to machine-readable binary code. This compiler, like any other, converts the .cpp file you created through VS Code's help into an executable (.exe) file.

First, we will download the [MinGW](https://sourceforge.net/projects/mingw/) setup

![1.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1659558857556/3cuHWg-W3.PNG align="left")

Click download to get the setup. Once the setup has been installed, run it and press install.

![2.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1659559036033/D4HWnweKy.PNG align="left")

You can change the installation directory if you want and continue.

![3.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1659559141868/il1sPcITZ.PNG align="left")

When the installation is completed, press continue to open the MinGW installation manager.

![4.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1659559243508/poKks8znn.PNG align="left")

At this point, you must be viewing a long list of packages right-click each of them, and click "Mark for installation."

![5.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1659559499721/JyxlyEfo2.PNG align="left")

Press “Installation” on the top left and click on “Apply Changes.”

![1.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1659631490021/hE8rT7xmC.PNG align="left")

A window will open. Press “Apply” again.

![2.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1659631504706/QeN3DIpd-.PNG align="left")

After the installation is complete, press “Close.”

![3.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1659631520054/LDeLIVLAM.PNG align="left")

**Note:** If upon pressing “Close,” the setup says that packages will be discarded then repeat the step where you install the packages because some files were not downloaded.

Now open the "bin" folder by going to the directory you installed MinGW.

![4.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1659632199561/DvDGDQ8Zf.PNG align="left")

Click on the top bar of the folder and copy the directory.

![5.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1659632208501/9axw4weJJ.PNG align="left")

Now to set environment variables, follow the steps below:

Search “Environment variables” and open “Edit the system environment variables”

![6.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1659632483596/D3j9l2a2K.PNG align="left")

Once a window appears, click on "Environment Variables."

![7.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1659632752816/s8ViaIZ0I.PNG align="left")

This will cause yet another window to open. Select "Path" under the "System Variables" and then press "Edit."

![8.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1659632764951/DuDMadd3W.PNG align="left")

Another window will open. Click new and paste the copied directory and Press “Ok”

![10.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1659632773771/JfsLl4GZ_.PNG align="left")

## Steps to install Visual Code Studio

Go to [https://code.visualstudio.com/download](https://code.visualstudio.com/download) this link and download for Windows, then open the downloaded setup

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684330127986/7dfc85d7-e8b8-4d24-a05f-30c8e6cf3aec.png align="center")

.

Select the directory where you want to install and press “Next”

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684330209096/3c5d866c-4527-4987-b31a-645a3d039f85.png align="center")

Now check all the boxes, specially the “Add to Path” box and press “Next”

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684330219742/e2655358-ce3c-41a9-a500-facbfd9f9fb5.png align="center")

Press “Install"

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684330284020/f72c09c0-e829-452b-bc2f-f977b8cfde2c.png align="center")

After the installation is complete, check the “Launch Visual Studio Code” box and click on “Finish”

VS code will open.

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684330698642/27aac116-cdba-4c1c-9397-da609b412efa.png align="center")

Now click on "extensions" in the left bar, and search for "C++"

![](https://cdn.hashnode.com/res/hashnode/image/upload/v1684330603213/9b189ca0-dde4-4e3f-b08d-9aacbc266e05.png align="center")

With this, your C++ setup for Windows is complete!
