Link to download MinGW: https://sourceforge.net/projects/mingw/
Link to download Visual Studio Code: https://code.visualstudio.com/
Three steps to install Visual Studio Code on windows
1)Install MinGW on your system
2) Set Environment Variables
3) Install Visual Studio Code
Video Edited by:
https://www.upwork.com/freelancers/~0...
Complete Steps to follow
0:00:24 Open any browser and type MinGW and press enter open the first website
0:00:34 The link to download MinGW is in the description you can directly download it from there
0:00:42 click on the green download button below and our downloading starts in just 4 to 5 seconds and it completes in 2 to 3 seconds
0:00:54 right click on the MinGW box on the extreme left bellow then click on open
0:01:00 then our setup starts
0: 01:04 just follow the steps click on install then don’t do anything just click on continue
0:01:13 its start downloading some files and after that installation will start depending upon your internet speed
0:01:24 our downloading has completed just click on continue then installation procedure has started
0:01:35 click on mingw32-base and mark for installation
0:01:41 click on MinGW-gcc-g++ and mark for installation
0:01:52 click on installation on the left side then click on apply changes then again click on apply
0:02:10 its start to download some packages it takes some time to complete
0:02:19 then it automatically starts installation after installation just we have to click on close
0:02:34 here green colours are shown on our installed packages and the version is also appearing
Close this window
0:02:41 then you have to follow a very important step open This PC and follow these steps
0:02:46 open Local Disk C and then open the MinGW folder inside it then open the first folder bin
0:02:55 copy the address of this folder then move back
0:03:08 right-click on pc then open properties then open advance settings and then click on environment variables
0:03:16 then click on the path and click on edit we are editing the path and then click on new and past that address which we have copied before
0:03:37 follow this step very carefully otherwise vs code will show error then press ok, then ok, and then ok close the last window
0:03:46 Type in the search bar cmd where we check whether our compiler MinGW is working good or facing any error
0:03:53 just type gcc --version and then press enter it shows MinGW installed version that means our MinGW compiler has been installed successfully.
0:04:23 Open your browser again and then just type visual studio code on google press enter download it for windows from the first website then right-click on it and open setup installation starts then follow the steps
0:05:08 Accept the agreement click on next
Again next mark the create desktop icon statement, next and then click on install
0:05:47 When the installation completes clicking on finish and Visual Studio code Launches (starts)
0:06:09 fist of all install extensions by clicking on the extreme left Extensions button
0:06:16 Install code runner extension (which provide the option to run the code)
shortcut keys to run the code ctrl+Alt+n
shortcut key to stop the running code ctrl+Alt+m
0:07:03 install another extension c/c++ ( for running c and c++ code )
0:07:23 click on file create a new file
0:07:30 again click on file save this file by clicking on save as add extension with file name .cpp for c++ and .c for c language code
0:07:45 click on save
0:08:05 write a simple c++ code save it by clicking on the file and then save
0:08:33 run the code by shortcut key ctrl + alt+n or by clicking on the play button on the top extreme right side
0:08:55 if we write another program that takes input from the user, this program runs but doesn't give us the option to write input
for this, we have to do another step
0:09:40 click on the file on the top left side and then move down on preferences and then click on settings
0:09:54 type in the search settings run in a terminal move down
0:10:01 marker the code runner run in terminal
0:10:04 close the visual studio code and then restart vs code again
0:10:15 save this code and run it again you see the program is taking input from the user
0:10:25 now it is taking input from the user
We have completed the installation of visual studio code on windows now you can run your c/c++ code without any error.
Link to download and install Dev C++ on windows:
• How to download and install dev C++ on win...
Comment your queries bellow
Happy coding!
"We learn Code and Lead"
Do not forget to subscribe.
#coding
#programming
#VisualStudioCode