Reputation: 2583
What are valid values for the c_cpp_properties.json tag "intelliSenseMode" ?
It defaults to clang-x64, but I am compiling with g++ so is there another value I can use there? I can not find any documentation about it.
Upvotes: 13
Views: 46725
Reputation: 301
When editing the .json configuration file, just type "intelliSenseMode": ""
and let intelliSense itself help.
Actually you may use the option "intelliSenseMode": "${default}"
to allow self selection.
Upvotes: 8
Reputation: 1240
Hovering on the intelliSenseMode
in the file c_cpp_properties.json
shows this documentation popup.
It pretty much says that valid values have to be specified in the format <platform>-<compiler>-<architecture>
. The older <compiler>-<architecture>
variants are legacy modes and are converted automatically to the newer format based on the platform. So, some valid values can be
linux-gcc-x64
windows-msvc-x64
macos-clang-x64
But when I checked in the documentation here it says the following.
Conclusion
I would go with the contextual documentation since official documentation builds can lag behind.
Version Details
Upvotes: 0
Reputation: 43
I was having the same problem, if you're using Windows
Then I changed the "IntelliSense mode" to "windows-gcc-x64" to get rid of the warning
Upvotes: 1
Reputation: 377
I am getting this warning because of line number 16
Just change "intelliSenseMode": "windows-msvc-x64"
to "intelliSenseMode": "windows-gcc-x64"
Upvotes: 2
Reputation: 2583
Because Artemy Vysotsky did not post his answer as an answer:
The documentation states that "msvc-x64"
and "clang-x64"
are the only possible values.
Upvotes: 14
Reputation: 336
Since v0.25, 32 bit modes are supported. The valid options are msvc-x64
, gcc-x64
, clang-x64
and their 32 bit counterparts msvc-x86
, gcc-x86
, clang-x86
. There's also the ${default}
option that Fábio Lobão mentions.
(Source: https://github.com/microsoft/vscode-cpptools/issues/2312)
Upvotes: 0