如何保存单屏/扩展多屏的VS窗口布局?

发布于 2024-09-27 17:06:37 字数 116 浏览 0 评论 0原文

我经常在办公室使用双屏工作,在家里使用单屏工作。 Visual Studio 2010 的窗口布局让我很困惑。我想保存/恢复布局,以便我可以快速“切换”到我想要的布局。

我怎样才能做到这一点?是否可以?

I often work at the office using dual screen and at home using single screen. The window layout of Visual Studio 2010 is messing with me. I want to save/restore the layout so that I can quickly "switch" to the layout I want.

How can I do that? Is it possible?

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

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

发布评论

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

评论(6

自此以后,行同陌路 2024-10-04 17:06:37

步骤如下:

  1. 将 Windows 布局设置按照您在工作中使用的方式导出到 .vssettings 文件中

  2. 按照您在家中使用的方式将 Windows 布局设置导出到 .vssettings 文件中

  3. 创建快捷方式为 devenv.exe /resetsettings [home.vssettings] 和一个为 devenv.exe /resetsetting [work.vssettings]

  4. 就是这样。只需在家里使用一个快捷方式打开 VS,在工作时使用另一个快捷方式即可。您可以在这里获取更多详细信息:
    http://blogs.msdn .com/b/zainnab/archive/2010/11/05/the-resetsettings-switch-vstipenv0047.aspx

Here are the steps:

  1. Export your windows layout settings the way you like to use them at work into a .vssettings file

  2. Export your windows layout settings the way you like ot use tham at home into a .vssettings file

  3. Create shortcuts for devenv.exe /resetsettings [home.vssettings] and one for devenv.exe /resetsetting [work.vssettings]

  4. That's it. Just use one shortcut while at home to open VS and the other at work. You can get more details here:
    http://blogs.msdn.com/b/zainnab/archive/2010/11/05/the-resetsettings-switch-vstipenv0047.aspx

三人与歌 2024-10-04 17:06:37

我发现的最佳解决方案是使用 Layouts O Rama扩大。您可以使用键盘快捷键(可以更改)或布局 O Rama 工具窗口在布局之间快速切换:

Screenshot


编辑:Visual Studio 2015 默认通过“窗口”菜单包含此功能:

Screenshot VS2015

Best solution I've found is to use the Layouts O Rama extension. You can quickly switch between layouts using either keyboard shortcuts (that you can change) or the Layouts O Rama tool window:

Screenshot


Edit: Visual Studio 2015 includes this feature by default through the "Window" menu:

Screenshot VS2015

记忆で 2024-10-04 17:06:37

Perspectives 扩展似乎可以满足您的需求。

“透视图允许 Visual Studio 2010 用户选择和管理 Visual Studio 窗口配置。”

http://perspectives.codeplex.com/

The Perspectives extension seems to handle what you need.

"Perspectives allows Visual Studio 2010 users to select and manage Visual Studio windows configurations."

http://perspectives.codeplex.com/

苍暮颜 2024-10-04 17:06:37

一种方法是将不同的布局设置导出到 .vssettings 文件中。然后,您可以导入您选择的设置并恢复所需的布局。

导出设置

  • 工具->导入/导出设置
  • 选择“导出”并单击下一步
  • 确保选中“常规设置 -> 窗口布局”
  • 完成向导并导出设置

我不确定这是否适用于多显示器设置。如果没有,我鼓励您在连接上提交错误。

One way to do this is to export the different layout settings into .vssettings files. You can then import the setting of your choice and get back the desired layout.

To export the setting

  • Tools -> Import / Export Settings
  • Select "Export" and hit next
  • Ensure "General Settings -> Window Layouts" is checked
  • Complete the wizard and export the settings

I'm not 100% sure this will work for multi-monitor settings. If it doesn't I would encourage you to file a bug on connect.

债姬 2024-10-04 17:06:37

从 Visual Studio 2015 开始,它在“窗口”下包含“保存窗口布局”和“应用窗口布局”菜单项。

Visual Studio 2015 允许您保存最多 10 个自定义窗口布局
并在它们之间快速切换。以下步骤展示了如何
创建、保存、调用和管理利用以下优势的自定义布局
具有停靠和浮动工具窗口的多个监视器。第一的,
创建一个包含两个项目的测试解决方案,每个项目都有不同的
最佳布局。

https://msdn.microsoft.com/en-us/library/4k7zyeba.aspx

As of Visual Studio 2015, it includes a Save Window Layout and an Apply Window Layout menu item under Window.

Visual Studio 2015 enables you to save up to 10 custom window layouts
and quickly switch between them. The following steps show how to
create, save, invoke, and manage custom layouts that take advantage of
multiple monitors with both docked and floating tool windows. First,
create a test solution that has two projects, each with a different
optimal layout.

https://msdn.microsoft.com/en-us/library/4k7zyeba.aspx

毁虫ゝ 2024-10-04 17:06:37

在 VS 17 中,在 Windows 菜单中保存窗口布局。然后应用快捷方式的窗口布局。 Ctrl + alt + 1(2、3、4 等)。

输入图片此处描述

In VS 17, Save window layout in Windows menu. Then apply window layout with short cut. Ctrl + alt + 1 (2,3,4 etc).

enter image description here

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