我可以在 Visual Studio 2010/2012/2013 中保存窗口布局吗?
有没有办法在 VS2010/VS2012/2013 中保存(并稍后恢复)给定的窗口布局?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
有没有办法在 VS2010/VS2012/2013 中保存(并稍后恢复)给定的窗口布局?
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
接受
或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
发布评论
评论(5)
是的,您可以使用“导入和导出设置向导”(位于“工具”菜单中)仅将与当前窗口布局相关的设置导出到文件中。取消选中除“常规设置”> 之外的所有内容“窗口布局”,并将文件保存在以后可以找到的地方。
然后,您可以再次使用“导入和导出设置向导”导入该设置文件,将所有工具窗口恢复到以前的布局。 (请注意,该向导还允许您限制从特定设置文件导入的内容,就像限制导出内容一样。)
我在我的笔记本电脑上使用它,在单个设置文件之间来回切换多个显示器设置使窗口管理变得非常痛苦。我只是维护描述我最常使用的每种布局的设置文件,并在需要时导入最适合我当前工作环境的布局。
Zain Naboulsi 在此处发布了有关此过程的博客,并附有说明性屏幕截图。
更新:VS 团队的 Praveen Sethuraman 指出 Visual Studio 2015 终于有了能够将自定义布局保存为内置的一流功能。但是,我还没有机会测试实施情况。
Yes, you can use the "Import and Export Settings Wizard" (found in the Tools menu) to export only the settings that relate to your current window layout to a file. Uncheck everything but "General Settings" > "Window Layouts", and save the file somewhere you'll be able to find it later.
Then, you can use the "Import and Export Settings Wizard" again to import that settings file, restoring all of your tool windows to their previous layout. (Note that the wizard also allows you to limit what you import from a particular settings file the same way you can limit what you export.)
I use this on my laptop, where switching back and forth between single and multiple monitor setups turns window management into a real pain. I just maintain settings files that describe each of the layouts I use most frequently, and import the one that best fits my current working environment when I need it.
Zain Naboulsi has blogged about the process here, complete with illustrative screenshots.
Update: Praveen Sethuraman, from the VS team, points out that Visual Studio 2015 finally has the ability to save custom layouts as a built-in, first-class feature. However, I have not had a chance to test the implementation yet.
有一个很好的 Visual Studio 插件,可让您保存和加载自定义窗口布局:http://perspectives.codeplex.com (您也可以在 VS 图库中找到它)。
我使用它是因为我经常需要在三屏幕布局(当我的笔记本电脑对接时)和单屏幕布局(仅限笔记本电脑显示屏)之间切换。
它也很有用,因为 VS 在调试后会随机忘记我的自定义布局。
There's a nice Visual Studio plugin that lets you save and load custom window layouts: http://perspectives.codeplex.com (you can also find it in the VS gallery).
I use it because I often have to switch between a three screens layout(when my laptop is docked) and a single screen layout (laptop display only).
It's also useful because VS randomly forgets my custom layout after debugging.
Layouts-O-Rama 是我对这个问题的看法。可在此处的 vs 库中找到:
http://visualstudiogallery.msdn。 microsoft.com/35966ad9-430f-4ad7-9186-4394b784e36c
Layouts-O-Rama is my take on the problem. To be found in the vs gallery here:
http://visualstudiogallery.msdn.microsoft.com/35966ad9-430f-4ad7-9186-4394b784e36c
我很高兴地告诉您,随着 Visual Studio“14”CTP2 版本的发布,我们添加了自定义布局功能,使用户能够保存、应用和管理自定义窗口布局。
有关 CTP2 版本的详细信息,请访问:http://blogs.msdn.com/b/visualstudio/archive/2014/07/08/visual-studio-14-ctp-2-available.aspx
我们很乐意听到您对此功能的反馈。请使用内置的“发送微笑”菜单向我们发送任何反馈(请参阅 http: //msdn.microsoft.com/en-us/library/zzszcehe.aspx)。
谢谢!
普拉文·塞苏拉曼
Visual Studio IDE 体验团队
I am excited to let you know that with the Visual Studio "14" CTP2 release, we have added a Custom Layouts feature which enables users to save, apply and manage custom window layouts.
Details about the CTP2 release can be found here: http://blogs.msdn.com/b/visualstudio/archive/2014/07/08/visual-studio-14-ctp-2-available.aspx
We would love to hear your feedback about this feature. Please send us any feedback using the built in "Send a Smile" menu (see http://msdn.microsoft.com/en-us/library/zzszcehe.aspx).
Thanks!
Praveen Sethuraman
Visual Studio IDE Experience Team
在 Visual Studio 2015/2017/2019 中,您可以转到 Window ->保存窗口布局。
您可以保存多个布局。我认为这不适用于跨设备。
In visual studio 2015/2017/2019, you can go to Window -> Save Window Layout.
You can save multiple layouts. I do not think this works across devices.