I know that I can use Arrow Keys to collapse items of solution explorer one by one, but I would like to know if there is a way to collapse all items with only one operation. I w
The VisualStudio extension CodeMaid provides collapsing.
Download from VisualStudioGallery.
The current version only supports VS2010 or higher, but you can install older versions side-by-side.
If you have Resharper installed, there is an option called Collapse All and a shortcut key next to it.
Now this shortcut key will not work for you ! Unless you set it up using Tools > Options > Keyboard
.
The command name is ReSharper_CollapseInSolutionExplorer
.
Search using this command name and assign a shortcut key of your choice.
and you now have a shortcut key ready to use to collapse all items in your solution explorer.
I know I am a little late to this discussion, but this surely gonna help some one or other.
Delete the *.suo
and *.csproj.user
files, and reopen the solution/projects.
In VS 2019 just click Collapse All
Use the Visual Studio extension that fits your version of Visual Studio. In my case (I use Visual Studio 2012) I use the extension Productivity Power Tools, but, unfortunately this exist only for VS 2010 and latter... For VS 2008 there is a similar extension: Power Commands.
It appears to be built in by default in Visual Studio 2013 onwards.