开发者

Hide a C++ code block from Intellisense

开发者 https://www.devze.com 2023-03-15 22:28 出处:网络
In order to work around some Intellisense deficiencies in MSVC++ 2010, I would like to \"hide\" some code block fr开发者_开发百科om Intellisense, but not from the compiler. For example:

In order to work around some Intellisense deficiencies in MSVC++ 2010, I would like to "hide" some code block fr开发者_开发百科om 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.


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

0

精彩评论

暂无评论...
验证码 换一张
取 消