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

后端 未结 13 1547
天涯浪人
天涯浪人 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:09

    Just use the number pad's Plus + and Minus - keys at the top-level node, to expand and collapse respectively (Note: * also expands the whole list.)

    For the toolbox, you need to use * and / instead for expand/collapse. Go figure.

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

    Using Visual Studio 2017 and above

    use shortcut

    • Open Tools > Options or press Alt + T + O
    • Under Environment tab > Keyboard (Also, you can create a shortcut for Tools.CustomizeKeyboard to open it directly)

    To Collapse All

    • Search for "SolutionExplorer.CollapseAll"
    • Add a new shortcut for example Ctrl+Left Arrow,Ctrl+Left Arrow

    To Expand All

    • Search for "SolutionExplorer.Folder.CollapseAll"
    • Add a new shortcut for example Ctrl+Right Arrow,Ctrl+Right Arrow

    • Assign > OK

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

    There's a macro at http://geekswithblogs.net/scottkuhl/archive/2007/04/09/111195.aspx for Visual Studio 2005.

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

    Visual Studio 2012 is out on 8/15/2012, so I suggest upgrading to that to get a fast "Collapse All" toolbar button previously available only in the Productivity Power Tools' Solution Navigator, which was sometimes too slow to be usable.

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

    take a look on this
    http://visualstudiogallery.msdn.microsoft.com/en-us/7272073b-32d4-4a84-93f7-77d09fb16f01

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

    You can use PowerCommands for Visual Studio 2008

    Right click on the project\solution on the solution explorer and choose Collapse Project:

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