每当我从SCM中查看我的解决方案时,我必须手动折叠我的解决方案中的每个项目,以便对其进行全面概述。
我知道折叠设置存储在.suo
文件中,该文件是二进制文件。我不想将此文件提交给SCM,而是寻找可以放在.sln
文件中的xml标记,这样当我打开它时,所有项目都会崩溃。
怎么做?
答案 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)