How to collapse all items in Solution Explorer in Visual Studio with Resharper ?

Today I wanted to find, if Resharper provides a shortcut to ‘Collapse All’ items in the Solution Explorer? A little search on google led to this thread on JetBrain’s Dev Community.

As you can see in the screenshot below, 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 CollapseInSolutionExplorerAction. Search using this command name and assign a shortcut key of your choice.

This made my life easier, I hope it does your’s too ;)

Further Reading :

Visual Studio: Is there a way to collapse all items of Solution Explorer?
JetBrain’s : Collapse All shortcut