Welcome to MSDN Blogs Sign in | Join | Help

Sara Ford's Weblog

My adventures embracing open source on CodePlex and at Microsoft

News

    • Did you know... All author proceeds go directly to sending Hurricane Katrina survivors to college.

      Microsoft Visual Studio Tips book

      Recent Entries

Did you know... Shift+Click automatically docks an auto-hiding tool window? - #129

So, I'm going through our Window Management test cases, looking for good tips and tricks, when I saw this test case.  I thought, "I don't remember this one at all!"

A funny story here about this tip.  I thought I had discovered a bug where "shift+clicking on a tool window that is docked at the bottom of the IDE disappears instead of docking."  But after repro'ing on someone else's machine (it is so important to get a repro on another machine when you are not sure...) I realized that it occurred anywhere.  Then i realized what the "bug" was... If the tool window is still sliding out, it will dock.  But if the tool window hasn't started to slide out yet, shift+click will send the Hide command.  So this tip is based on both behaviors...

Let's start with Tool Window 101.  When a tool window is docked (and see the previous tips for more info on that), you have the option to auto-hide.  Just click the auto-hide push-pin as shown in the below image.  Or go to Window - Auto Hide to auto hide the currently-selected tool window.

Tool Window Auto-Hide push pin

Clicking this push-pin will cause the window to auto-hide, as shown below.

 Solution Explorer Auto-hiding

Now, you could mouse over the solution explorer, and press the push-pin again to redock.  or go to Window - Auto Hide (which will uncheck the auto hide setting).  But, what's the fun in that?

Did you know... (here's the actual tip)... do a Shift+Click on the auto-hiding tool window (the second picture in this post), and it will automatically go into a docked state.

However... if the tool window is already sliding out (as shown below), then it will automatically hide.

Tool Window sliding out from auto-hiding state

So, you are probably wondering, okay sara, so what is Shift+Click really supposed to do?  It is supposed to Hide.  But when the tool window starts to slide, stuff happens, and it goes into a docked state instead of a hide state. 

More than you ever wanted to know about the VS shell, huh?

Technorati tags: ,
Posted: Tuesday, January 15, 2008 3:00 AM by saraford

Comments

xjb said:

# December 22, 2008 8:53 PM

Секреты Visual Studio said:

Когда инструментальное окно закреплено (смотрите предыдущий совет, посвященный способам закрепления окон),

# June 1, 2009 3:16 AM
New Comments to this post are disabled
Page view tracker