Click here to Skip to main content
15,885,905 members
Articles / Operating Systems / Windows

Visual Studio Tips - Window Management

Rate me:
Please Sign up or sign in to vote.
5.00/5 (4 votes)
4 Apr 2019CPOL2 min read 9.6K   2   5
Window Management in Visual Studio

Everyone has their own favorite layout for the various tool windows in Visual Studio. But sometimes, you want different Window layouts based on what you’re working on, or whether you have external screens attached to your laptop.

First, the basics of tool windows.

You can click and hold any window by its header (or its tab if it is already docked) and drag it. While dragging it, you will see a bunch of little blue boxes indicating where it can docked, if you drop it on one of those, it will dock, otherwise it will float and can even be moved to a second monitor.

Image 1

If a window is docked, you can Pin a window with the Thumbtack icon to make it always visible, or if it’s already pinned, you can Unpin it to make it Autohide.

Image 2

Save Your Window Layouts

Once you have all your windows where you want them, you can Save the layout by going to Window -> Save Window Layout. You’ll be prompted to name your layout. This saves which windows are open, where they are docked, whether they are pinned or autohidden, and their size.

Image 3

Once you’ve save a layout or two, you can either go back to the Window menu, click Apply Window Layout and select your layout from the list. Or you can use the hot key combination for the layout (ie Ctrl+Shift+1 for layout 1).

Image 4

The Catch

The one slightly unintuitive part of saving window layouts is that when you save a layout, that is for both the layout for editing and the layout for debugging which are often different. So to set a layout, you need to get all the windows where you want them in edit mode, then start a debug session to get all of those windows where you want them, then save the layout. Otherwise, you’ll find yourself needing to switch layouts every time you go from editing to debugging and back.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Software Developer
United States United States
I’m a Software Engineer at Microsoft working on the Azure Portal. Before that I spent about 20 years developed various business applications at a number of different companies. I have a passion for writing clean, scalable code and sharing what I’ve learned with others.

I also help run the Casco Bay .Net User Group

Comments and Discussions

 
QuestionExcellent information Pin
robertlsharp8-Apr-19 6:00
robertlsharp8-Apr-19 6:00 
GeneralMy vote of 5 Pin
Kirk Wood5-Apr-19 7:29
Kirk Wood5-Apr-19 7:29 
GeneralRe: My vote of 5 Pin
Jeremy Hutchinson13-Apr-19 9:11
professionalJeremy Hutchinson13-Apr-19 9:11 
QuestionThanks giving Pin
mewarmicrons itor4-Apr-19 21:39
mewarmicrons itor4-Apr-19 21:39 
AnswerRe: Thanks giving Pin
Jeremy Hutchinson13-Apr-19 9:10
professionalJeremy Hutchinson13-Apr-19 9:10 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.