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?
It's easy to set your default layout: Arrange your windows the way you like, go to the Window menu in Visual Studio and pick Apply Window Layout > My Default. If you want you can setup several window layouts by picking Window > Save Window Layout. This choice gives you the option of assigning a name to your layout.
First, click and hold the title bar with the mouse, and then drag the window to where you want to dock it. Visual Studio displays some docking icons. Four icons are at the edge of the IDE, one each at the left, top, right, and bottom. These icons are used for docking the window at the given edge of the IDE.
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
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:
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/
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With