本文是小编为大家收集整理的关于由Visual Studio生成的浏览信息的目的是什么?的处理/解决方法,可以参考本文帮助大家快速定位并解决问题,中文翻译不准确的可切换到English标签页查看源文。
问题描述
我在一个解决方案中获得了一个庞大的C ++第三方项目.因此,构建时间相当长,浏览信息的生成也需要很多.那么浏览信息的目的是什么?如果我禁用浏览信息生成,将丢失什么功能?
推荐答案
Visual Studio 6需要浏览信息来完成Doug T.提到的事情.
Visual Studio的较新版本可以使用浏览信息文件,但默认情况下使用了较新的Intellisense数据库.对于这些版本,基本上有一个Intellisense守护程序,该守护程序可以在后台构建数据库,而不是直接嵌入在构建过程中.使用IntelliSense时,拥有多个处理器或核心确实有帮助.否则它确实会陷入您的系统.
其他推荐答案
来自在这里
选择在下面生成浏览信息 C/C ++项目设置选项卡 您想成为的源文件 包括.这非常有用 搜索功能定义和 声明 - 右键单击a 功能/变量,然后选择" goto ...的定义 带你直接那里.
您将失去一些轻松导航代码的能力.这在非常大的代码库中可能很重要.我知道,没有它和诸如 Visual Assiss x ,我会迷路的工具.尽管如此,Visual Studio仍具有非常有效的Find-Infiles操作,无法完全用浏览工具替换.
问题描述
I got a huge C++ third-party project with set of project in one solution. So build time is rather long and Browse Information generation takes a lot too. So what is the purpose of Browse Information? What functionality will be lost if i disable Browse information generation?
推荐答案
Visual Studio 6 required browse information to do the things that Doug T. mentioned.
Newer versions of visual studio can use the browse information file, but by default use a newer Intellisense database. For those versions, there is basically an Intellisense daemon that builds the database in the background instead of being directly embedded in the build process. It really helps to have more than one processor or core when using Intellisense. Otherwise it can really bog down your system.
其他推荐答案
From here
Select Generate Browse Info under the C/C++ project settings tab, for any source-files that you want to be included. This is very useful for searching for function definitions and declarations - just right-click a function / variable and select "Goto Definition Of..." and the IDE will take you straight there.
You will lose some ability to easily navigate your code. This may matter a lot in a very large code base. I know that without it and tools like Visual Assist X, I would be lost. Still, Visual Studio has a very efficient find-in-files operation that cannot be completely replaced with browsing tools.