How to save the VS window layout for single/extended-multiple screen?
Asked Answered
L

6

21

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?

Ludivinaludlew answered 15/10, 2010 at 3:12 Comment(1)
see perspectives.codeplex.comSavoury
E
22

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

Elegance answered 16/10, 2010 at 16:3 Comment(1)
Is there a way to make this work when starting a solution directly?Swellhead
K
11

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

Karlenekarlens answered 2/7, 2014 at 13:33 Comment(2)
IMO it's the second most valuable extension after ResharperScrag
OMG VS 2015 is awesome, thank you for adding the edit.Calcifuge
F
7

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/

Ferocity answered 8/9, 2011 at 8:3 Comment(2)
This is a really neat extension. Also works for VS2012. I couldn't find it in the VS Gallery, but it can be downloaded from CodePlex.Keep
Doesn't work on VS2013. See Layouts O Rama as suggested by @Karlenekarlens (https://mcmap.net/q/597727/-how-to-save-the-vs-window-layout-for-single-extended-multiple-screen).Trivandrum
B
6

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.

Bookrest answered 15/10, 2010 at 3:21 Comment(0)
A
0

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

Astray answered 18/8, 2016 at 17:0 Comment(0)
C
0

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

Centuplicate answered 16/7, 2018 at 10:31 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.