如何配置我的解决方案以显示在Visual Studio上折叠的所有项目?

时间:2011-01-19 11:22:37

标签: visual-studio-2010 solution suo

每当我从SCM中查看我的解决方案时,我必须手动折叠我的解决方案中的每个项目,以便对其进行全面概述。

我知道折叠设置存储在.suo文件中,该文件是二进制文件。我不想将此文件提交给SCM,而是寻找可以放在.sln文件中的xml标记,这样当我打开它时,所有项目都会崩溃。

怎么做?

3 个答案:

答案 0 :(得分:1)

安装适用于Visual Studio的DPack并使用“折叠所有项目”上下文菜单项; - )

答案 1 :(得分:1)

安装Productivity Power Tools并使用Solution Navigator而不是Solution Explorer:

  

Solution Navigator是一个新的工具窗口,其作用类似于增强的解决方案资源管理器。有了它,你可以:

* Expand code files to navigate to its classes, expand classes to navigate to their members, and so on (C# and VB only)
* Search your solution, all the way down to class members
* Filter your solution or projects to see just opened files, unsaved files, and so on
* View related information about classes and members (such as references or callers/callees for C#)
* Preview images by hovering over them, or preview rich information by hovering over code items
* We've also added support for multiple selection and drag & drop. (New!) 

它还有一个全部折叠按钮。

答案 2 :(得分:0)

帮助我的最小插件是Collapse Selection In Solution Explorer