Visual Studio项目上的ipch文件

时间:2023-01-15 00:12:37

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

我在我的项目中找到了一个ipch文件夹,其文件有一个ipch扩展名。而且,它们非常庞大。

Can I get rid of them?

我可以摆脱它们吗?

2 个解决方案

#1


67  

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.

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

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.

删除它们很好,它们仅在IDE中加载项目时使用。如果你重新加载项目,那么IntelliSense将会有一段时间紧张,重建.ipch文件,重新解析项目中的文件并重新创建项目目录中的.sdf文件。在大型项目上,可以轻松地花费几分钟。当然,.ipch文件越大,所需的时间就越长。这是您在完成项目后通常只会考虑的事情。

#2


8  

You can't change location of ipch file on persolution basis, but you can do it for whole VS installation. For this you need to change Always Use Fallback Location in Tools>Options to true. After this you can delete ipch folder from your solution's folder and it will not appear there again.

您不能在persolution的基础上更改ipch文件的位置,但您可以在整个VS安装中执行此操作。为此,您需要将工具>选项中的始终使用后备位置更改为true。在此之后,您可以从解决方案的文件夹中删除ipch文件夹,它不会再出现在那里。

Visual Studio项目上的ipch文件

You can read a bit more here

你可以在这里阅读更多内容

#1


67  

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.

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

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.

删除它们很好,它们仅在IDE中加载项目时使用。如果你重新加载项目,那么IntelliSense将会有一段时间紧张,重建.ipch文件,重新解析项目中的文件并重新创建项目目录中的.sdf文件。在大型项目上,可以轻松地花费几分钟。当然,.ipch文件越大,所需的时间就越长。这是您在完成项目后通常只会考虑的事情。

#2


8  

You can't change location of ipch file on persolution basis, but you can do it for whole VS installation. For this you need to change Always Use Fallback Location in Tools>Options to true. After this you can delete ipch folder from your solution's folder and it will not appear there again.

您不能在persolution的基础上更改ipch文件的位置,但您可以在整个VS安装中执行此操作。为此,您需要将工具>选项中的始终使用后备位置更改为true。在此之后,您可以从解决方案的文件夹中删除ipch文件夹,它不会再出现在那里。

Visual Studio项目上的ipch文件

You can read a bit more here

你可以在这里阅读更多内容