Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to disable that new "FileContentIndex" folder (and .vsidx files) in VS 2022 17.2.0?

Since update to VS 2022 17.2.0, a new folder called "FileContentIndex" is created in "...\.vs\[soln name]".

This seems to be related to ServiceHub.IndexingService.exe. There's also a new file type of ".vsidx" and a "merges" folder.

There's not much info around at the moment. At the time of posting, StackOverflow returns no search results on the above.

I want to disable this feature. I've gone through all the Tools > Options settings but can't seem to find anything relevant. Any ideas?

Thanks

Added screenshot: VS 2022 17.2.0 Tools > Options VS 2022 17.2.0 Tools > Options

like image 705
user1553309 Avatar asked Aug 31 '25 15:08

user1553309


1 Answers

I was experiencing the same issue. I'm running Visual Studio 2022 ARM version 17.4.0 preview 4.0.

I found this work around in the Microsoft Developer Community.

Basically, rename or delete the Indexing.servicehub.service.json file from the C:\Program Files\Microsoft Visual Studio\2022\[Community,Pro,Enterprise,Preview]\Common7\IDE\CommonExtensions\Microsoft\Editor\ServiceHub folder.

You can then delete the .vs\[Solution Name]\FileContentIndex folder.

That folder was 185GB on my machine. I followed this work around and the folder has not come back.

Hope this helps.

like image 69
Don Shrout Avatar answered Sep 06 '25 13:09

Don Shrout