阻止visual studio创建浏览信息(.ncb)文件

Mar*_*ett 5 c++ visual-studio-2008 visual-studio

有没有办法阻止VS2008为C++项目创建浏览信息文件文件.
我很少使用类浏览器,并且在每次构建之后重新创建它都是不值得的,特别是因为即使构建失败也会运行它.

编辑 - 进入声明/定义也需要它

Jor*_*mer 5

在项目属性中,您将在以下位置找到浏览信息:

配置属性 - > C/C++ - >浏览信息

只是告诉它不要生成浏览信息.它用于快速浏览代码组件(如使用"转到定义")等等.我个人喜欢能够在组件之间快速跳转,但如果它为编译添加了不必要的时间,请不要担心将其关闭.


Adi*_*sak 4

还有一个注册表项用于此目的:[HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\9.0\Languages\Language Services\C/C++]

智能感知开启

"IntellisenseOptions"=dword:00000000
Run Code Online (Sandbox Code Playgroud)

智能感知关闭

"IntellisenseOptions"=dword:00000007
Run Code Online (Sandbox Code Playgroud)

智能感知开启 - 无后台更新

"IntellisenseOptions"=dword:00000005
Run Code Online (Sandbox Code Playgroud)

有更多标志可用,您也可以通过宏控制智能感知。

ISENSE_NORMAL = 0       'normal (Intellisense On)
ISENSE_NOBG = &H1       'no bg parsing (Intellisense Updating Off - although NCB file will be opened r/w and repersisted at shutdown)
ISENSE_NOQUERY = &H2    'no queries (don't run any ISense queries)
ISENSE_NCBRO = &H4      'no saving of NCB (must be set before opening NCB, doesn't affect updating or queries, just persisting of NCB)
ISENSE_OFF = &H7       
Run Code Online (Sandbox Code Playgroud)