Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Hide a C++ code block from Intellisense

In order to work around some Intellisense deficiencies in MSVC++ 2010, I would like to "hide" some code block from Intellisense, but not from the compiler. For example:

#ifndef INTELLISENSE
void foo(); // compiled, but skipped by Intellisense
#endif

I'm looking for the exact name of this INTELLISENSE macro, if such a macro exists; or an equivalent way to do the same thing.

like image 552
Etienne Dechamps Avatar asked Jun 27 '11 17:06

Etienne Dechamps


1 Answers

The proper macro for VC++ 2010 is __INTELLISENSE__, as described in this blog article: Troubleshooting Tips for IntelliSense Slowness

like image 89
ildjarn Avatar answered Sep 23 '22 02:09

ildjarn