I use Visual Studio IDE for C++ development.
I have set up the option of using a fallback location under Text Editor -> C/C++ -> Advanced -> Browsing Database Fallback
where there are folders named BROWSE.VC-xxxx
whose sizes reach into a couple of GBs that I routinely clean without affecting the functionality since they are generated again on rebuilding.
Additionally, I clean up the C:\Users\UserName\AppData\Local\Temp
(%tmp%
) folder routinely. This seems to also be suggested as an answer here. There is a rather old question whose accepted answer seems to indicate files/folders that should not be deleted for correct functioning of Visual Studio. Is there any comprehensive list of files/folders that can be safely deleted routinely? A search for clearing Visual Studio cache files seems to return a dizzying array of different flavored answers. See one such answer here.
In VSCode, for instance, there are cache files that can be deleted safely without affecting functionality in general (see discussion here), and in particular for C/C++ development, there are .ipch
files that can be deleted (see discussion here). What are the equivalent files/folders under Visual Studio IDE?