Then choose and click on the Macros button. To see the current values for build macros such as VC_IncludePath, select the Include Directories line and click the dropdown on the right. If the paths are identical in all configurations and platforms, you can select All configurations and All platforms and then verify that the paths are correct. Right-click on the project node in Solution Explorer and make sure that all #include paths are correct for the current configuration and platform. If you run your builds outside of the Visual Studio IDE, and your builds are succeeding but IntelliSense is incorrect, it is possible that your command line is out of sync with the project settings for one or more configurations.
Ensure #include paths are correct MSBuild projects If there are over 1000 errors in the header files included by a source file, then the source file shows only a single error squiggle at the very start of the source file. IntelliSense produces a maximum of 1000 errors. To see all the IntelliSense errors for the current source file together with all included header files, choose Build + IntelliSense in the dropdown: If a file is not open in single-file mode, and IntelliSense is not working correctly, the first place to check is the Error List window. If the Navigation Bar says Miscellaneous Files, then that probably explains why you are not seeing error squiggles under incorrect code, or why a preprocessor macro is not defined. When you open a file that is not included in a project, Visual Studio provides some IntelliSense support but by default no error squiggles are shown. The Visual Studio IDE helps you identify and fix IntelliSense problems. In some cases, you may need to create a hint file to help IntelliSense understand macro definitions.
For non-MSBuild projects, you adjust settings in the CppProperties.json file in the root directory of the project. vcxproj files), you can adjust settings in project properties. In some cases, you might need to manually configure your C++ project to get IntelliSense working properly.