foreword
Compared with Visual Studio, VSCode is more lightweight and can be used across platforms. When testing some small algorithms, VSCode
the combination C/C++Extension
is very small, so this article mainly summarizes how to configure the C++ development environment on VSCode.
There is no difference between the C++ development environment configuration and the Python environment configuration, and both follow the following rules:
- install interpreter
- install plugin
- Configure the interpreter address in the plugin
The installation details are detailed below.
Compiler installation and configuration
Windows environment
download
Install MinGW in the Win environment , here select the online installer, as shown in the following figure:
Install:
-
Select the appropriate version, the windows 64-bit system can be selected as follows:
-
Make sure that the installation path has no
空格
and中文
characters, so the path is as follows:
-
Waiting for online download and installation
Configure environment variables
- As shown below
Installation and configuration of C++ plug-ins
Install
As shown below:
configuration
- Configure the plug-in
Compiler Path
as a C++ compiler environment variable, as follows:
- Configure the plugin
IntelliSence mode
asgcc-x64
follows:
test
The test results are as follows:
Summarize
It can be seen that the development environment configuration of C++ is no different from that of Python, and both follow the following rules:
- install interpreter
- install plugin
- Configure the interpreter address in the plugin
Much the same.