次の方法で共有


Undock and Dock a Single Tool Window in a Group

Keyboard:  ALT + -, F (VS2010 Only); ALT + -, K (VS2010 Only)
Menu:  Window -> Float; Window -> Dock
Command:  Window.Float; Window.Dock
Versions:  2008,2010
Published:  10/3/2010
Code:  vstipTool0099

 

Undock

There are multiple ways to take a single tool window in a group and undock it:

 

Click and Drag

With the mouse, you can just take the tab then CLICK AND DRAG it out of the group:

image

 

 

Menu

With the tool window active, you can go to Window -> Float:

image

 

 

Control Box (VS2010 Only)

Probably the oldest method that is actually new in Visual Studio now is to use the Control Menu.  Just press ALT + - to get the menu:

image

 

Then press F to make the tool window float.

 

 

Result

Regardless which of the methods you use the result is the same.  You wind up with an undocked tool window:

image

 

 

 

Dock

To dock a floating tool window back into a group (assuming it came from a group) you also have multiple options.

 

 

Click and Drag

By far, the hardest option is to CLICK AND DRAG the tool window back into the group.  The best way to do this is to drag the tool window title bar over the title bar of another tool window in the group you want it to join:

image

 

Notice how the target shading looks like a tab being put onto the existing group?  That is what you look for when doing it this way.  Of course, I would only do it this way if you were taking a tab from one group to another NOT if you were returning a floating tool window back to its original group.

 

 

Menu

The menu option is pretty easy, just go to Window -> Dock:

image

 

 

Control Box (VS2010 Only)

And then there is the Control Menu.  Just press ALT + - to get the menu:

image

 

Then press K to make the tool window dock back to its original location.

 

Result

The result of using any of these methods will put the tool window back into the group it came from with the notable exception of the CLICK AND DRAG method which can be used to put the tool window anywhere:

image

Comments

  • Anonymous
    October 03, 2010
    Surely using the docking rossette thing (not really sure what it's called) is the easiest way to get a window back into a group?

  • Anonymous
    October 03, 2010
    Hey Darren :) It's called the Guide Diamond and I left it out on purpose for this post because I wanted to focus mostly on keystrokes that would do the job.  I was going to not include the click and drag option but decided to leave it in.  But you are right, I shold have also included a mention of the using the Guide Diamond (blogs.msdn.com/.../using-the-new-guide-diamond-vstiptool0008.aspx). Z