Visual Studio: Is there a way to collapse all items of Solution Explorer?

后端 未结 13 1523
天涯浪人
天涯浪人 2021-01-30 02:30

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

相关标签:
13条回答
  • 2021-01-30 03:16

    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.

    0 讨论(0)
  • 2021-01-30 03:17

    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.

    0 讨论(0)
  • 2021-01-30 03:22

    Delete the *.suo and *.csproj.user files, and reopen the solution/projects.

    0 讨论(0)
  • 2021-01-30 03:24

    In VS 2019 just click Collapse All

    0 讨论(0)
  • 2021-01-30 03:28

    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.

    0 讨论(0)
  • 2021-01-30 03:33

    It appears to be built in by default in Visual Studio 2013 onwards.

    0 讨论(0)
提交回复
热议问题