How to prevent or remove Visual Studio PCH folders

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

The PCH 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

Tips & Bits

Debug and power tools coming soon!!

Visual Assist X (VAX) - How to configure Arduino sketches as VAX C++ files. Refactor, Snipets, enhanced syntax colors, examples, suggestions and much much more. Only downside is that it costs $100.

Connect two or more arduinos and spy on the serial communication using visual studio and "Serial Echo"

Apple Mac users might find this xcode site useful

Coming soon! Android and Processing for Visual Studio

How to prevent or remove Visual Studio pch folders

How to configure visual studio color coding for arduino source code

See more Examples

Multiple sketch projects and windows projects can co-exist in a single solution. Fully integrated. F5 Compile and upload (startup project). Build Project, Build Solution