New Visual Studio C/C++ users sometimes get tripped up by IntelliSense errors, so today I’ve decided to share the secret, undocumented solution: just turn them off!
IntelliSense is a nice user interface feature when it works, but it has nothing whatever to do with building and running your C/C++ code. IntelliSense errors do not equal compiler errors, and trying to “fix” them is fruitless.
Simply right-click anywhere on the Visual Studio error list (the click must be inside the list, not outside), then uncheck “Show IntelliSense Errors”. Problem solved!
There is one small irritating issue with this solution: your setting is not persisted in the registry, so the errors have to be turned off every time you start Visual Studio.
3 thoughts on “How to fix IntelliSense errors in Visual Studio”
I’ve found that if a file ends without a newline (e.g. the last line of the include file is #endif and there’s no CRLF after it) it will mess up Intellisense and cause it to flag errors.
Bob!, you are the man!
DUDE that newline thing TOTALLY works.
+1 add a newline at the end of your file.