开发者

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

Is there a way to col开发者_运维问答lapse all the files at once in the Solution Explorer window in Visual Studio?


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.


In visual studio 2013, there is a button in solution explorer - Collapse All

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


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.


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


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


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜