How to Set up Visual studio code for C and C++ Programming | Run C++ in Visual Studio (VS code)

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
hey guys if you are looking for how you can run c and c plus plus programs in your favorite visual studio code then you are in the right place watch this video until the end because i am about to show you step by step process to configure visual studio code for running c and c plus programs correctly and i am also gonna show you how you can run sample c plus plus program in visual studio code on windows 10 machine so let's get started firstly we have need to download and install the c plus plus compiler the best suited for our job is mingolo to download and copy this link i have provided this link in the video description now open your favorite web browser i am using google chrome here and then paste the copied link into the search bar and hit enter this is the third party page for downloading mingolu for windows operating system the best part about this site is that it contains self-extracting archive for menu loop which is really super easy to install now click on this menu download link and now you can see our x file is started downloading here it's around 45 megabit file it will take some time to download all depend on your internet connection speed our mingilu installer x file is downloaded successfully now click on show in folder and simply right click on this file and select open here cancel all of this accept c colon slash and click on extract button and it will start the extraction and installation process it will take some time to complete now we need to add path in environment variable so that we can access g plus plus and gcc in visual studio code for that double click on this pc and open local disk c here open newly installed main directory then open bin folder and click on address bar and finally copy this path now again go back to this pc and right click on this free space and select properties here click on environment variables button select path and then click on edit button and then click on new and paste menu path in the blank field then click on ok button ok again and ok again now let's check is this working or not now click on window button then type cmd and then click on command prompt here type g plus plus space hyphen hyphen version and press enter if you see something like this then congratulations you have successfully installed minjulu compiler on your windows 10 machine correctly now i will show you how you can download and install visual studio code on windows 10 you can skip this part if you already installed visual studio code and directly jump to c plus plus configuration part so now open your browser and type vs code install into the address bar and hit enter this is the official page for downloading visual studio code to download it click on display download for windows button and now you can see our code user setup x file started downloading our vs code installer setup file is downloaded successfully now click on this showing folder we need to install this file simply double click on this file and it will start the setup wizard here accept the license agreement and click on next button just leave it as default for the destination folder and click on next button and finally click on install button it will take some time to install and finally click on finish button you have successfully installed visual studio code on windows 10 after open visual studio code press this button in the search bar type code runner and choose this first option now press on this small install button to run the code you can press control plus alt plus on and to stop the code from running you can press control plus alt plus m now in search bar type c c plus plus and select the first option and again press on this small install button it will install c plus debugging and code browsing support now let's write some basic c plus plus program in the visual studio code for testing now click on the new file button and click on file and select save as choose the preferred directory give a name to a file i am writing subscribe dot cpp don't forget to add cpp at the end of the file for c plus plus program otherwise it won't work and then click on save let me quickly type a basic c plus plus program that prints welcome to coding knowledge channel now click on run button so this how you can run c plus program in visual studio code
Info
Channel: CodingKnowledge
Views: 2,861
Rating: undefined out of 5
Keywords: visual studio code, visual studio, set up visual studio code for c c++, vs code, visual studio code c++, setup visual studio code for c/c++ programming, programming for beginners, run c program in visual studio code, set up visual studio code for c and c++ programming, how to set up visual studio code for c and c++ programming, how to set up visual studio code for c and c++, how to run c++ in visual studio code, c programming, setup visual studio code for c programming
Id: sJ_Qxbv4fDQ
Channel Id: undefined
Length: 5min 23sec (323 seconds)
Published: Mon Apr 26 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.