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.
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.
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.
gcc-x64
. (supposedly the default value on Linux but my Linux vscode installation defaults to clang-x64
) –
Heraclid 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.
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)
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
© 2022 - 2024 — McMap. All rights reserved.