隐藏Intellisense的C++代码块

Eti*_*mps 12 c++ intellisense visual-studio-2010 c-preprocessor

为了解决MSVC++ 2010中的一些Intellisense缺陷,我想从Intellisense"隐藏"一些代码块,而不是从编译器中"隐藏".例如:

#ifndef INTELLISENSE
void foo(); // compiled, but skipped by Intellisense
#endif
Run Code Online (Sandbox Code Playgroud)

INTELLISENSE如果这样的宏存在,我正在寻找这个宏的确切名称; 或者做同样事情的等效方法.

ild*_*arn 20

VC++ 2010的正确宏是__INTELLISENSE__,如本博客文章中所述:智能感知缓慢的故障排除技巧