Collapse all files at once in Solution Explorer window in Visual Studio

前端 未结 6 1189
情话喂你
情话喂你 2020-12-21 03:01

Is there a way to collapse all the files at once in the Solution Explorer window in Visual Studio?

相关标签:
6条回答
  • 2020-12-21 03:04

    Try free VSCommands 2010 Lite extension. It has this and few other free features.

    0 讨论(0)
  • 2020-12-21 03:05

    In Visual Studio 2013 you can do it with right click by Solution -> Collapse All

    0 讨论(0)
  • 2020-12-21 03:08

    Use the extension Collapse Solution. Usually, this feature comes with ReSharper, but I presume that you are not using ReSharper.

    There are also a lot of macros out there that help you do the same. One of them is in ‘Collapse All’ in Visual Studio.

    Note: There is no inbuilt way in Visual Studio to actually achieve this. And considering just how practical it is, I would have thought they would have added this kind of feature way back in Visual Studio 2005 itself. I know people have been asking for it for years. But in their infinite wisdom, Microsoft don't consider it important enough.

    0 讨论(0)
  • 2020-12-21 03:13

    Of course, you can collapse any selected node by pressing '-', but I understand you are probably looking to collapse the entire tree.

    0 讨论(0)
  • 2020-12-21 03:18

    In visual studio 2013, there is a button in solution explorer - Collapse All enter image description here

    0 讨论(0)
  • 2020-12-21 03:28

    I think this extension have requested functionality - PowerCommands for VS 2010. Also Productivity Power Tools contains solution navigator which also have this feature and much more usefull stuff for solution navigation and search.

    Edited: there also a lot of examples of macro, doing this stuff.

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