Original URL: Http://msdn.microsoft.com/zh-cn/library/vstudio/z4y0hsax (v=vs.110). aspx
How to: Arrange and dock windows
Visual StudioOther versions1 out of 1 rated this helpful -rate this topic
The integrated development Environment (IDE) contains two types of Windows: Tool windows and document windows. depending on how the window is arranged in the IDE, you can adjust the viewing and editing space for your code. The following options are only part of the way you can arrange windows:
The tabs on the left side of the document window are well locked.
Docks the window to the editing frame as a tab.
Dock the tool window to the edge of the frame in the IDE.
Causes the window to float above or outside the IDE.
Hides the tool window at the edge of the IDE.
Displays the window on a different monitor.
Tiles the window in the editing frame.
Resets the window position to the default layout.
window menu, and by Right-clic King the title bar of the window to be arranged. " > You can arrange tool windows and document windows in the following ways: Drag a window, use the commands in the customize dialog box. " > You can arrange the toolbars by dragging or by using the how to:customize Menus and Tool Bars (Visual Studio). " > For more information about how to locate toolbars, see How to: Customize Menus and Toolbars (Visual Studio).
description |
visual Studio Settings. " > For more information, see Visual Studio settings. |
make a window float
You can remove any tool window or a document window from its default location in the IDE, and move the window anywhere on the desktop or move to another monitor. You can dock multiple tools and document windows together, and then move them as one unit anywhere on the desktop or on another monitor.
If two document windows appear at the same time, the edits are updated when the content is edited.
Place the tool window or document window outside the IDE
Returns the tool window or document window to its nearest docking position
Docking Window
By default, designer Windows and editor Windows display documents that are arranged on tabbed panes in the editing framework of the IDE. When you drag the Editor or designer window to another location to help you easily re-window, a diamond is displayed.
Diamond for designer and editor windows
Tool windows can hold frames in the IDE or edit one side of a frame. a diamond is displayed when the tool window is dragged to another location to help you easily re-window.
For the tool window's diamond
Docking tool windows and document windows
Click the Tool window or document window you want to dock.
Drag the window to the middle of the IDE.
Tips |
To move a dockable window without snapping it to the grid position, select the Ctrl key while you drag the window. |
If the window is a tool window, there are four additional arrows pointing to the four sides of the IDE.
When you drag a window that reaches the location you want to dock, move the pointer over the corresponding section of the Diamond Guide marker. The specified area is displayed as a shadow.
To dock the window in the indicated position, release the mouse button.
solution Explorer is docked on the right edge of the IDE and your want to the dock it on the left edge, Drag solution Explorer toward the middle of the IDE, move the pointer over the far left arr ow of the Guide diamond, and then release the mouse button. " For example, if Solution Explorer is docked to the right side of the IDE, and you want to dock it to the left, you should drag
Alternatively, you can dock the tool window to the side section by dragging the tool window to one side of the IDE until you see the secondary Diamond Guide marker. Click one of the four arrows to dock the tool window to the side of the section.
Minimize tool windows
The tool window supports the name auto-hide feature. When you use a different window, the Auto Hide feature causes the current window to slide aside. when the window is automatically hidden, its name is displayed on the tab, at the edge of the IDE. to use the window again, point to the tab so that the window slides back to view.
To use auto-hide
In the menu bar, select windows, Auto Hide to turn auto-hide on or off.
Alternatively, you can click the pushpin icon on the window's title bar. The pushpin icon is similar to: if Auto-hide is enabled.
Auto Hide is enabled
Pushpin icons are similar to: auto-hide when disabled.
Auto Hide is disabled
description |
auto Hide button affects active tool windows only in the options dialog box. " > To set whether Auto hide Acts on each tool window individually or in the form of a docking group, select or clear general, Environment, Options Dialog box. " > For more information, see Options dialog box, environment, General. |
Description |
Tool windows that have auto-hide enabled may temporarily slide into view when the window has focus. to hide the window again, select an item outside the current window. when the window loses focus, it slides back to the outside of the view. |
Specify the display
If you have another monitor and your operating system supports the monitor, you can choose which monitor to display the window on. You can even combine multiple windows in "rafts" on other displays.
Tips |
You can create multiple instances of Solution Explorer and move them to another monitor. Right-click the window, and then select New Solution Explorer view. |
Move a window to a different display
-
display settings in the control Panel to set up a multiple monitor C Onfiguration. " > Use the Control Panel to set up the multi-monitor configuration. For more information, see Windows Help.
-
in Visual Studio, drag a tool window or document window onto another monitor.
You can return all windows by selecting the Ctrl key while double-clicking back to the original display.
Resetting the window layout
You can use the Reset Window Layout command to revert the IDE to the original window layout of the settings collection. when you run the command, the following actions occur:
You can specify a different default window layout by modifying the current settings. For more information, see How to: Change Selection settings.
Resets the window position to the default layout
on the Window menu, click Reset Window Layout.
In the message box, click Yes.
Please seeReference window type Other resources arrange and use Windows to customize the development environment in Visual Studio
"Go" how to: Arrange and dock windows