VSCODE C++环境配置
[参考博文]
(https://blog.csdn.net/qq_40477151/article/details/103917156)
(https://blog.csdn.net/weixin_38260878/article/details/101049070)
放一下我的配置文件
.vscode文件夹中有三个文件c_cpp_properties.json、launch.json、tasks.json文件。我使用的编译器是g++.
想要实现多文件编译的同学可以参考task.json文件。
文件内容如下:
c_cpp_properties.json
{
"configurations": [
{
"name": "MinGW64",
"intelliSenseMode": "gcc-x64",
"compilerPath": "D:\\VSCODE\\mingw64\\bin\\g++.exe",
"includePath": [
"${workspaceFolder}"
],
"cppStandard": "c++17"
}
],
"version": 4
}
launch.json
{
"version": "0.2.0"