Collapse projects in Solution Explorer

后端 未结 5 486
小鲜肉
小鲜肉 2021-02-02 07:07

How can I collapse / expand all projects in Solution Explore using keyboard?

相关标签:
5条回答
  • 2021-02-02 07:50

    The *, + and - on the numeric pad controls do this:

    • Open the solution explorer, select the folder to expand and press *.

    • To collapse, press -.

    • Then if you have collapsed some sub-folders, press + to return to your partially collapsed version.

    0 讨论(0)
  • 2021-02-02 07:58

    try this: http://visualstudiogallery.msdn.microsoft.com/cb0ec47d-05a4-40a7-ba39-9a2da6492f1c/

    0 讨论(0)
  • 2021-02-02 08:00

    In Visual Studio 2013 it is finally just part of solution explorer... with a "Collapse All" icon. enter image description here

    The right click option available with earlier versions of power tools in is not there but clicking the icon is easier anyway.

    0 讨论(0)
  • 2021-02-02 08:05

    Power Commands for VS2008 has a command to do this, plus lots of other neat tools

    http://code.msdn.microsoft.com/PowerCommands

    You could also write a macro to do it, and assign it to a key combination

    http://weblogs.asp.net/israelio/archive/2007/09/06/visual-studio-collapse-selected-node.aspx

    0 讨论(0)
  • 2021-02-02 08:08

    Press CTRL+ALT+L to focus on Solution Explorer. If it's not on the screen, or it's collapsed, this will focus on it.

    Then press your left arrow key as many times as it takes to get to the solution, and with another left, it'll collapse the whole tree.

    I jsut tested VS2008, and you can also press HOME, to get to the top of the tree.

    If what you want, is the solution open, and all the project files closed, then ....

    once you're home in the tree view, press down,left for each open project and|or open solution folder (if you have those).

    The power tools that @Jason mentioned, might have a different solution, but this is how you can navigate the Solution Tree without any add-ins.

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