Hello, there.
Similar question was asked before here, but it doesn't seem to be updated for CMake projects since such project don't have "standard" Visual Studio structure and it does not let me open View > Property Pages for a file. In my case the project structure looks as follows:
I don't want anything outside of src folder to trigger IntelliSense warnings, as those are libraries, but i can't find any settings that controls the scope of IntelliSense checking. Is such option available at all? And if not, is it possible to disable IntelliSense warning for all files (and leave only linting tools specified under CMakeSettings.json:
{
"environments": [ { "VCPKG_PATH": "D:/Path/To/VCPkg/vcpkg/scripts/buildsystems/vcpkg.cmake" } ],
"configurations": [
{
"name": "x64-Debug",
"generator": "Ninja",
"configurationType": "Debug",
"inheritEnvironments": [ "clang_cl_x64" ],
"buildRoot": "${projectDir}\\out\\build\\${name}",
"installRoot": "${projectDir}\\out\\install\\${name}",
"cmakeCommandArgs": "",
"buildCommandArgs": "-v",
"ctestCommandArgs": "",
"cmakeToolchain": "${env.VCPKG_PATH}",
"enableClangTidyCodeAnalysis": false,
"intelliSenseMode": "windows-clang-x64"
}
]
}