快捷键:ctrl + shift + p
进入
{
"configurations": [
{
"name": "Linux",
"includePath": [
"${workspaceFolder}/**"
],
"defines": [],
"compilerPath": "/usr/bin/g++",
"cStandard": "c11",
"cppStandard": "c++98",
"intelliSenseMode": "linux-clang-x64"
}
],
"version": 4
}
将其中的:
"cppStandard": "c++98",
改为:
"cppStandard": "c++14",