softadda.com
Visual studio code is an open source code editor developed by Microsoft for Windows, Linux and MacOS platforms. It is a software editor that has a rich extension of various languages like C++, C, Java, Python, GO, PHP etc. In Visual studio code, we can change the background theme, keyboard shortcuts on our preferences, install an extension an add additional functionality.
We have already installed the Vs code in our system. Its look like as shown in image given below.
Checking MinGW installed or not
To check that your MinGW-w64 tools are correctly installed and available, open a new command prompt.
If you don’t see the expected output or g++ and gdb is not recognized command, make sure your path entry matches the Mingw-w64 path location where the compilers are located. If the compilers do not exist at that path entry, make sure you followed the instructions on the MSYS2 website to install Mingw-w64.
//Simple C Program to display "Hello world".
//Header file for input and output function.
#include
//main function:-
//where the execution of program begins.
int main()
{
//Prints hello world.
printf("Hello World");
return 0;
}
Hello World
2. After clicking on settings, select the extension button to set the setting for the C compiler.
3. Scroll the drop-down box to select the Run Code configuration.
4. Now scroll the right-side pane and tick on the Run in Terminal.
I hope this blog was helpful, If you are facing any problem while installing let me know in the comment section.