Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ipch files on a Visual Studio project

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

Can I get rid of them?

like image 570
MelMed Avatar asked Oct 16 '13 08:10

MelMed


People also ask

What are Visual Studio IPCH files?

Developer file used by Microsoft Visual C++, an IDE used for Windows C++ programming; contains precompiled header information used by Intellisense, Microsoft's code assistance module used for code hinting, documentation, and autocompletion while the programmer types source code.

Can I delete IPCH files?

Managed to find a pretty informative answer from the MSDN support forums: I'm not only a C# moderator but also a C++ user :} The ipch directory and the many, many new files generated by the compiler can be safely deleted. In fact they should be deleted (and probably are) for clean builds.


1 Answers

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.

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.

like image 56
Hans Passant Avatar answered Sep 21 '22 18:09

Hans Passant