Tuesday, May 3, 2011

Collapse projects in Solution Explorer

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

From stackoverflow
  • 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

  • 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 comments:

Post a Comment

Note: Only a member of this blog may post a comment.