visual-studio 如何最大化 Visual Studio 面板?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/3106410/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
How to maximize Visual Studio panels?
提问by Borek Bernard
Is there a way to quickly maximize (and then restore) Visual Studio 2010 panels? For instance, I'd like to temporarily maximize the Output window or unit test results window. In Eclipse, I would just double-click the window tab, but in VS, this undocks the window.
有没有办法快速最大化(然后恢复)Visual Studio 2010 面板?例如,我想暂时最大化输出窗口或单元测试结果窗口。在 Eclipse 中,我只需双击窗口选项卡,但在 VS 中,这会取消停靠窗口。
The desired behavior is: double-click to maximize the window, then double-click it again to restore the panel to its original position.
所需的行为是:双击以最大化窗口,然后再次双击以将面板恢复到其原始位置。
采纳答案by Ramkumar
This feature has been added to Visual Studio Productivity Power Tools 2013("Double click to maximize windows"), which is free to download.
此功能已添加到Visual Studio Productivity Power Tools 2013(“双击最大化窗口”),可免费下载。
This new feature allows double-clicking any window tab to maximize it to full-screen mode and restore it back to its initial docked state - without having to worry about float operations or changes to your window layout.
这项新功能允许双击任何窗口选项卡将其最大化为全屏模式并将其恢复到初始停靠状态 - 无需担心浮动操作或更改窗口布局。
回答by Evil Engel
Use this keyboard shortcut: Shift-Alt-Enter It will maximize your current panel similar to Eclipse, but it will use the full screen unfortunately, not just the whole Visual Studio window. I prefer the way Eclipse does it, but this does help in Visual Studio land.
使用此键盘快捷键:Shift-Alt-Enter 它将最大化您当前的面板,类似于 Eclipse,但不幸的是它将使用全屏,而不仅仅是整个 Visual Studio 窗口。我更喜欢 Eclipse 的方式,但这在 Visual Studio 领域确实有帮助。
回答by Chad Levy
In Visual Studio 2010, you can double-click the title bar of a given panel to put it into float mode, then use it just like any other window (maximize, Windows 7 dock, etc.). Ctrl-double-clickingit again will turn it back into a docked panel.
在 Visual Studio 2010 中,您可以双击给定面板的标题栏将其置于浮动模式,然后像使用任何其他窗口(最大化、Windows 7 停靠栏等)一样使用它。Ctrl-double-clicking它将再次将其变回停靠面板。
You can also right-click on the title bar and select Dock as Tabbed Documentto display the panel in the same way the code windows are displayed.
您也可以右键单击标题栏并选择Dock as Tabbed Document以与显示代码窗口相同的方式显示面板。
回答by samis
In Visual Studio 2017, on a focused tab
在 Visual Studio 2017 中,在焦点选项卡上
Alt+ -, F
Alt+ -,F
Alt+ Space, X(see UPDATE)
Alt+ Space, X(见更新)
UPDATE (Windows 10)
更新(Windows 10)
Win+ Up
Win+ Up
回答by Red Rooster
From the Viewmenu, pick Full Screenmenuitem.
从“视图”菜单中,选择“全屏”菜单项。
Note: when you select the View menu, you will notice that the shortcut for selecting Full Screen is mentioned, Shift+Alt+Enter(which was mentioned previously in the Answers).
注意:当您选择视图菜单中,你会发现,选择全屏快捷提到,Shift+ Alt+ Enter(这是在回答前面提到的)。
Platform: Visual Studio Professional 2017, Version 15.5.7 on Windows 10, 64-bit
平台:Visual Studio Professional 2017,版本 15.5.7,Windows 10,64 位
回答by Borek Bernard
Closest the Eclipse behavior is to follow these steps:
最接近 Eclipse 行为的是执行以下步骤:
- Right-click the window title bar, select Float
- Double-click the window title to maximize
- Right-click the window title, select Dock
- 右键单击窗口标题栏,选择浮动
- 双击窗口标题最大化
- 右键单击窗口标题,选择Dock
After these steps, double-clicking and Ctrl+double-clicking the window maximizes / restores itself
完成这些步骤后,双击并Ctrl+双击窗口最大化/恢复自身
回答by Shaun Luttin
Here it is as a key board shortcutfor commando types:
这是突击队类型的键盘快捷键:
- Ctrl+TabSwitch to your desired window/panel.
- Alt+-Show the dock menu.
- TChoose 'Dock as tabbed document'
- Ctrl+Tab切换到您想要的窗口/面板。
- Alt+-显示停靠菜单。
- T选择“作为选项卡式文档停靠”
回答by Brian
Right click title bar, then choose 'float', it will only get that window, not the whole panel. Then double-click to maximize.
右键单击标题栏,然后选择“浮动”,它只会获取该窗口,而不是整个面板。然后双击最大化。
Also, the commands are
此外,命令是
Window.Float
Window.Dock
and you can assign them keyboard shortcuts under tools\options. So for example I mapped them to Ctrl-Shift-F7 and Ctrl-Shift-F8, and then after once maximizing the Output window, henceforth if I have the output window docked, I just focus it and then a key makes it big and other puts it back, hurray.
您可以在工具\选项下为它们分配键盘快捷键。因此,例如我将它们映射到 Ctrl-Shift-F7 和 Ctrl-Shift-F8,然后在最大化输出窗口之后,此后如果我将输出窗口停靠,我只需聚焦它,然后一个键使它变大和其他把它放回去,欢呼吧。
回答by Ashraf Abusada
If you have already installed Productivity Power Tools 2017 (PPT), and the double click file tab is not working or any other feature in PPT, just reset the PPT and it should work just fine after restarting visual studio 2017.
如果您已经安装了 Productivity Power Tools 2017 (PPT),并且双击文件选项卡不起作用或 PPT 中的任何其他功能,只需重置 PPT,它应该在重新启动 Visual Studio 2017 后正常工作。

