In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-07 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/03 Report--
Editor to share with you how to configure VSCode to build the development and compilation environment, I believe most people do not know much about it, so share this article for your reference. I hope you will learn a lot after reading this article. Let's learn about it together.
Preface
After working for many years, I suddenly found that many of the foundations of C++ have been forgotten, coupled with the various new features of C++ after continuous upgrading, so I want to pick up the basic learning of C +. Although I work on the Linux platform now, for personal convenience, I just want to review the grammar, which can be used at home and away from home, so I decided to build a C++ IDE development environment. I remember that when I first started programming N years ago, I used Visual programming 6.0. The lovely icon below must be familiar to many people. But today I want to try a new tool, Visual Studio Code, to build the development environment of CumberCraft +.
This official article is also introduced in great detail: https://code.visualstudio.com/docs/cpp/config-mingw
VSCode installation process 1. Download VScode
"download link: https://code.visualstudio.com/Download
"the installation process: the installation is very simple. I set it by default all the way (of course, I can choose the installation path and so on) until it is finished.
two。 Install the CumberCraft + extension tool
"Open VSCode and follow these steps to install
"Select extension Toolbar-- > search C++ keyword-- > Select Cpicard + plugin installation. The installation of other auxiliary plug-ins also follows similar steps.
3. Download MinGW
"download address: https://sourceforge.net/projects/mingw-w64/files/
"downloaded files: do not click" Download Lasted Version "after entering the website, slide down and find the latest version of" x86_64-posix-seh ".
"install MinGW: download a 7z zip file (x86x64-8.1.0-release-posix-seh-rt_v6-rev0.7z I downloaded), unzip it and move the mingw64 directory to the installation location. My installation location is: C:\ Program Files\ mingw64
4. Configure environment variables
"configure the access path for the MinGW installation, for example, my installation location is C:\ Program Files\ mingw64
"to verify whether the environment variable is configured successfully, press win + R, enter cmd, enter enter after the enter key, and then enter enter. If prompted with the following information, the environment variable configuration is successful.
5. Configure the C++ environment with a simple .cpp file
1. Create a new empty folder Work
two。 Open VScode-- > Open folder-- > Select the folder you just created Work
3. Create a new HelloWorld.cpp file
# include using namespace std;int main () {cout
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.