如何保存单屏/扩展多屏的VS窗口布局?
我经常在办公室使用双屏工作,在家里使用单屏工作。 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
步骤如下:
将 Windows 布局设置按照您在工作中使用的方式导出到 .vssettings 文件中
按照您在家中使用的方式将 Windows 布局设置导出到 .vssettings 文件中
创建快捷方式为 devenv.exe /resetsettings [home.vssettings] 和一个为 devenv.exe /resetsetting [work.vssettings]
就是这样。只需在家里使用一个快捷方式打开 VS,在工作时使用另一个快捷方式即可。您可以在这里获取更多详细信息:
http://blogs.msdn .com/b/zainnab/archive/2010/11/05/the-resetsettings-switch-vstipenv0047.aspx
Here are the steps:
Export your windows layout settings the way you like to use them at work into a .vssettings file
Export your windows layout settings the way you like ot use tham at home into a .vssettings file
Create shortcuts for devenv.exe /resetsettings [home.vssettings] and one for devenv.exe /resetsetting [work.vssettings]
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
我发现的最佳解决方案是使用 Layouts O Rama扩大。您可以使用键盘快捷键(可以更改)或布局 O Rama 工具窗口在布局之间快速切换:
编辑:Visual Studio 2015 默认通过“窗口”菜单包含此功能:
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:
Edit: Visual Studio 2015 includes this feature by default through the "Window" menu:
Perspectives 扩展似乎可以满足您的需求。
http://perspectives.codeplex.com/
The Perspectives extension seems to handle what you need.
http://perspectives.codeplex.com/
一种方法是将不同的布局设置导出到 .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
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.
从 Visual Studio 2015 开始,它在“窗口”下包含“保存窗口布局”和“应用窗口布局”菜单项。
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.
https://msdn.microsoft.com/en-us/library/4k7zyeba.aspx
在 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).