Article Directory
Preface
Visual Studio code runs c++/c language and searches the Internet for almost the same installation MinGW
, all kinds of copy copy, I wonder if there is no other way? This article provides another way to run c++/c language on Visual Studio code with just a few clicks.
One, install Visual Studio code
The download address is as follows: click on the jump to download the
installation is very simple, just choose the installation path and continue to the next step.
Two, install the support library
1.C/C++
2.Code Runner
Click 标号1
the icon at the 标号2
place , and then 应用商店中搜索扩展
search for the above two libraries in order and install them in the place at the place . After the installation is over, create a project folder by yourself and write a simple C++ program, as shown in the figure. Finally, click the triangle run button in the upper right corner, and you can find that it appears in the output box below hellow ok
. So far, Visual Studio code runs c++/c language successfully.
Note: After writing the program, you must first use the shortcut key Ctrl+s to save it, otherwise the execution will be the program written last time, not the latest change.
Hereby share, this article is based on a little use of Visual Studio code. As for the basic operation of Visual Studio code, you can check Baidu, there are piles and piles, I will not repeat the fun.