Visual Studio spawning massive amount of IPCH files in project root

Adam Szentesi 11 Reputation points
2022-10-04T09:00:43.343+00:00

Hi, I am working on a Unreal Engine 4.27 project (editor plugin) and every time I try to "Find all references" (Visual Studio 2022) of let's say a method implemented in my project that might be called from the engine project (search entire solution) VS starts to spawn massive intellisense precompile header files in the root of my project and not the .vs dir. There are some IPCH files in the .vs/project/v17/ipch dir too but only about 6GB, which is OK. But these new files in project root are huge and numerous. Before the ref search finished my folder had 40GB+ of these. Every time I remove them VS creates them again when I try to find engine refs.

I do not want these files and I do not mind the slowdown but I was not able to find any setting that would disable their creation.

Could anyone please help me solve this?
247323-snimek-obrazovky-2022-09-30-111800.png

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
4,514 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Anna Xiu-MSFT 24,636 Reputation points Microsoft Vendor
    2022-10-05T07:00:56.71+00:00

    Hi @Adam Szentesi ,

    Welcome to Microsoft Q&A!

    Please try to go to Tools > Options > Text Editor > C/C++ > Advanced > change “Always Use Fallback Location” to True.
    Then, manually delete these ipch files in your project folder and try again.

    Sincerely,
    Anna
    *
    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.