我可以在Visual Studio 2010/2012/2013中保存窗口布局吗?

编程入门 行业动态 更新时间:2024-10-22 19:49:02
本文介绍了我可以在Visual Studio 2010/2012/2013中保存窗口布局吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

是否可以在VS2010/VS2012/2013中保存(然后还原为)给定的窗口布局?

Is there a way to save (and later revert to) a given window layout in VS2010/VS2012/2013?

推荐答案

是的,您可以使用导入和导出设置向导"(在工具"菜单中找到)仅将与当前窗口布局相关的设置导出到一份文件.取消选中常规设置">窗口布局"以外的所有内容,然后将文件保存在以后可以找到的位置.

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在此处,并附有说明性的屏幕截图.

Zain Naboulsi has blogged about the process here, complete with illustrative screenshots.

更新:VS团队的Praveen Sethuraman 指出 Visual Studio 2015最后可以将自定义布局保存为内置的一流功能.但是,我还没有机会测试实现.

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 2010/2012/2013中保存窗口布局吗?

本文发布于:2023-11-14 04:35:23,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1586232.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:布局   窗口   Studio   Visual

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!