简体   繁体   中英

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.

VC++ 2010 的正确宏是__INTELLISENSE__ ,如这篇博客文章中所述: IntelliSense 缓慢的故障排除技巧

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM