How to prevent or remove Visual Studio ipch/pch folders from the project

Visual Studio uses an ipch folder to save intellisense information and will create a sub folder below the project by default.

The ipch folder can be deleted but Visual Studio applies admin level permissions which makes it difficult to delete

Unfortunately Visual Studio does not allow a pch location to be altered for individual projects or solutions but the location can be overriden for an entire Visual Studio installation

You can instuct Visual Studio to "Always use the fall back location", if the fall back location is not supplied then Visual Studio will use a temp folder

It is useful to note that once you change this setting Visual Studio releases all admin locks on any existing pch folders allowing you to delete them

In the Tools>Options example below "Always Use Fallback location" has been altered from False to True

Other Pages