3. Install & Configure VS Code : C

Install & Configure VS Code


What is an IDE? 

What is an IDE?

IDE represents an Integrated improvement climate. It is just an upgraded rendition of a content tool that assists you with composing more effective and more pleasant code. It assists with separating various pieces of your codes with various shadings and telling you in case you are feeling the loss of some semicolon or section somewhere by featuring that region. A lot of IDEs are accessible like DEVC++ or Code Blocks however we will utilize VS Code.


Compiler

Compiler

A compiler is utilized to run the program of a specific language by changing over the code into the language that our PC could comprehend. Without a compiler, we can not run our code. Each programming language is required an alternate compiler for its working because the grammatical structure of each language is not the same as the other. There are a ton of compilers accessible, however, we will utilize MinGW.


VS Code Installation

VS Code

  • To start with, we will see the establishment of VS Code. For that pursuit "VS Code download" on google or straightforwardly visit the URL: https://code.visualstudio.com/download
  • Snap-on the download choice. 
  • After the download is finished, open the arrangement and show it to saving VS Code in the default area without changing any settings whatsoever. Simply click the following button over and over until the establishment cycle starts. 
  • After the establishment interaction is finished, run VS code. 


MinGW Installation -

  • For that quest google for C programming in VS Code or straightforwardly visit the URL: https://code.visualstudio.com/docs/languages/cpp
  • Presently you need to choose C++ from the sidebar. 
  • By tapping on that you will see a couple of compiler choices on the right side. Pick "GCC using Mingw-w64 on Windows" from them. 
  • You will be redirected to this page.


Setting way for the compiler -

  • Presently what we need to do is, we need to set the way for our compiler. For that, we need to go to the C directory → Program Files → MinGW-64 → MinGW-32 → bin. In the wake of arriving at the container, we need to save the way or URL to the bin. 
  • Note - The way maybe something very similar if you pick all the default alternatives. 

    • Then, at that point, go to the properties of "This Pc". 
    • Select "Advanced System Settings" 
    • Select the "Environment Variable" choice. 
    • Add the replicated way to the Environment variable.

Post a Comment

0 Comments