Header Ads

Full Process To Run/Debug C and C++ in Visual Studio Code(VSC) || Procedure For Compiling C and C++ Language in VSC

Full Process To Run/Debug C and C++ in Visual Studio Code(VSC)

Full Process To Run/Debug C and C++ in Visual Studio Code(VSC)


VSC installation

You must first install vs code. You must visit the visual studio code's official website to get the program.

Install it after simply accepting the license agreement.

 

After installing MinGW, you must obtain a C or C++ compiler in order to run the programs. VSC advises downloading the MinGW compiler.

the windows Simply click on this link to download it :

https://drive.google.com/file/d/1ujOYZFIc_m_qAuisUk4bVT52SZo_XIWZ/view?usp=drivesdk

MinGW Configuration

Next, please, install it on your computer. Downloading and installing it may take some time. Finally, navigate to your C drive (the Windows boot folder). You will discover a folder entitled MinGW there.

Click it to open the bin folder.

 

Then, open the search environment variables in the search bar and paste the file location there.



Next click on path under environment variables and select edit.



A new option will be shown there; simply click on it and paste the location of the bin's path.



then save it.

VSC Configuration

Then navigate to VSC, select options, and then search for some C/C++ extensions. Download any results that appear from Microsoft.

Furthermore, download the Code runner extension addon.

 

Write your C or C++ code after that.

You can choose between running or debugging by clicking the play button next to the down arrow in the upper left corner.

From this point, you can just save the selection and run the program.

That's all.

 

 

No comments

Powered by Blogger.