Visual Studio项目上的ipch文件

编程入门 行业动态 更新时间:2024-10-25 08:25:52
本文介绍了Visual Studio项目上的ipch文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我在项目中找到一个ipch文件夹,其文件具有ipch扩展名。另外,它们非常庞大。

I am finding an ipch folder in my project whose files are having an ipch extension. Plus, they are quite voluminous.

我可以摆脱它们吗?

推荐答案

这是IntelliSense解析器使用的预编译头文件。与构建项目时编译器生成的预编译头文件不同,后者是构建输出目录中的.pch文件。否则,它起着完全相同的作用,它大大提高了解析器的速度。它可以使用这种帮助,而EDG前端从未如此快速。

That is the precompiled headers file that is used by the IntelliSense parser. Distinct from the precompiled header file that the compiler generates when you build your project, that's a .pch file in your build output directory. It otherwise plays the exact same role, it greatly increases the speed of the parser. It can use that kind of help, the EDG front-end has never been particularly fast.

删除它们很好,仅当您加载了项目时才使用它们IDE。如果重新加载项目,则IntelliSense将会出现一段时间的故障,重新生成.ipch文件,重新解析项目中的文件,并在项目目录中重新创建.sdf文件。在大型项目上,可能要花几分钟的时间。当然,.ipch文件越大,所需的时间也就越长。通常,您只是在完成项目后才考虑这样做。

Deleting them is fine, they are only used when you have the project loaded in the IDE. If you reload the project then IntelliSense is going to be catatonic for a while, rebuilding the .ipch file, re-parsing the files in the project and recreating the .sdf file in the project directory. On large projects that can easily take a handful of minutes. Of course, the bigger the .ipch file, the longer that will take. It is something you'd normally only contemplate after you finished a project.

更多推荐

Visual Studio项目上的ipch文件

本文发布于:2023-11-16 19:55:20,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1607241.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:文件   项目   Visual   Studio   ipch

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!