Visual Studio Code网址:
Download Visual Studio Code - Mac, Linux, Windows
插件:
C/C++
MinGW
网址:
MinGW-w64 - for 32 and 64 bit Windows - Browse Files at SourceForge.net
下载的文件:
进入网站后不要点击 “Download Lasted Version”,往下滑,找到最新版的 “x86_64-posix-seh”。
添加环境变量(bin目录)
cmd检查是否成功
g++ --version
配置vscode
c_cpp_properties.json
Ctrl + Shift + P
在输入栏输入C/C+, 选择“Edit Configurations(UI)”进入配置
{
"version": "0.2.0",
"configurations": [
{
"name": "g++.exe build and debug active file",
"type":