Disable expanding file contents in Visual Studio 2012 Solution Explorer
In Visual Studio 2012, the files in Solution Explorer are expandable, allowing the user to navigate to the symbols they contain:
While this can be convenient, I personally never use the Solution Explorer to navigate the code symbols: I prefer using Resharper Go To Type/Symbol and the File Structure Window, or Visual Studio Navigate To and VS Code Map. When using the Solution Explorer, I usually want to rename, delete or create a new file. Having expandable files makes the folders and projects harder to distinguish, so I searched for a way to disable this feature.
After Googling to no avail, I finally found an hidden setting that can be set in the registry.
Go to HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0 and add a new dword value named UseSolutionNavigatorGraphProvider with a value of 0. Restart Visual Studio and enjoy your old-school Solution Explorer:
You can also directly apply this registry file: VS2012NoFileExpand


You, sir, deserve a medal for sharing this little trick. Those arrows were so annoying.
Thanks!, no longer am I overwhelmed with expansion arrows
Cool but does not work for VS Express 2012 for Win Desktop on Win7
For VS Express 2012 for Win Desktop 32-bit it should be HKEY_CURRENT_USER\Software\Microsoft\WDExpress\11.0
Nice post. I was checking constantly this blog and I’m impressed! Very useful information specifically the last part
I care for such info much. I was seeking this certain info for a long time. Thank you and best of luck.
Hi Julien, great post, but I have the inverse problem. I was able to expand files in Solution Explorer but for some reason it stopped working (maybe after Update 2) and I’d like it back. To me it’s useful for dragging and dropping classes into UML Class Diagrams. I tried creating your registry value but with value “1″
but with no luck. Can you help me getting it back. I’d really appreciate it.
Thanks again
German