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

发布于 2024-10-12 22:31:13 字数 198 浏览 3 评论 0原文

每次我从 SCM 检查我的解决方案时,我都必须手动折叠解决方案中的每个项目,以获得对其的良好概述。

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

怎么做呢?

Every time I check out my solution from the SCM I have to collapse manually each project in my solution to get a good overview of it.

I know that the collapsed settings are stored in a .suo file, which is binary. I don't want to commit this file to the SCM, instead I am looking for a xml tag that I could put in the .sln file so when I open it all projects are collapsed.

How to do that?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

·深蓝 2024-10-19 22:31:13

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

Install DPack for Visual Studio and use the "collapse all projects" context menu item ;-)

奢欲 2024-10-19 22:31:13

安装高效生产力工具并使用解决方案导航器解决方案资源管理器:

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

* 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!) 

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

Install Productivity Power Tools and use Solution Navigator instead of Solution Explorer:

Solution Navigator is a new tool window that acts like an enhanced Solution Explorer. With it, you can:

* 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!) 

It also haves a collapse all button.

场罚期间 2024-10-19 22:31:13

对我有帮助的最小插件是 在解决方案资源管理器中折叠选择< /a>

The smallest plugin that helped me is Collapse Selection In Solution Explorer

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文