简体   繁体   English

如何在 Visual Studio 2013 中隐藏除编辑器窗口之外的所有窗口?

[英]how to hide all windows except editor window in Visual Studio 2013?

In Eclipse when you click twice on the tab of the editors Eclipse hide all other windows except the one you write code in and when you do that again(clicking the tab of the document all windows comeback again).在 Eclipse 中,当您在编辑器的选项卡上单击两次时,Eclipse 会隐藏所有其他窗口,除了您在其中编写代码的窗口,当您再次执行此操作时(单击文档的选项卡,所有窗口都会再次返回)。

Is there a similar feature in Visual Studio 2013? Visual Studio 2013 中是否有类似的功能?

Update: I found Auto Hide in Window Menu, but I don't want auto hide, I want to click something to hide windows and click again to show them.更新:我在窗口菜单中找到了自动隐藏,但我不想自动隐藏,我想单击某些东西来隐藏窗口,然后再次单击以显示它们。

View |查看 | Full Screen全屏

(In my key bindings: shift + ctrl + enter .) (在我的键绑定中: shift + ctrl + enter 。)

However, double clicking on an editor tab also works, this is provided by one of the extensions I use, but I'm not sure which.)但是,双击编辑器选项卡也可以,这是由我使用的扩展之一提供的,但我不确定是哪个。)

As a programmer i love shortcut keys which is very helpful for productive work.作为程序员,我喜欢快捷键,这对高效工作非常有帮助。 I've search question as you mentioned.我有你提到的搜索问题。 But i did not get proper answer.但我没有得到正确的答案。 then i've searched solution for me which might helpful to you.然后我为我搜索了可能对您有帮助的解决方案。

Step 1 : Go to visual studio第 1 步:转到视觉工作室
Step 2 : From tool menu open Options menu第 2 步:从工具菜单打开选项菜单
Step 3 : Go Environment -> Keyboard第 3 步:转到环境 -> 键盘
Step 4 : Select item Window.AutoHideAll from list第 4 步:从列表中选择项目Window.AutoHideAll
Step 5 : Set short cut in "Press shortcut keys textbox".步骤5 :在“按快捷键文本框”中设置快捷方式。 I've set Ctrl+Alt+] then click on Assign & then ok.我已经设置了Ctrl+Alt+]然后点击分配然后确定。
Step 6 : Final step.第 6 步:最后一步。 Use above shortcut to hide all window other than editor window.使用上面的快捷方式隐藏编辑器窗口之外的所有窗口。

Richards answer does work, but has the side effect of maximizing the whole of Visual Studio as well.理查兹的回答确实有效,但也有最大化整个 Visual Studio 的副作用。 Sometimes (eg when comparing editor text to some other text), I would like Visual Studio to only take half the screen.有时(例如,将编辑器文本与其他文本进行比较时),我希望 Visual Studio 只占用一半的屏幕。 A solution I found in Visual Studio 2019 was:我在 Visual Studio 2019 中找到的解决方案是:

  1. Window |窗口 | Save Window Layout (call it something like Normal layout)保存窗口布局(称之为普通布局)
  2. Unpin all the other panes you don't want to see, ToolBox, Solution Explorer, Build Results etc. Typically Left, Right and Bottom取消固定您不想看到的所有其他窗格、工具箱、解决方案资源管理器、构建结果等。通常是左、右和底部
  3. Window |窗口 | Save Window Layout, call it say maximized Editor.保存窗口布局,称之为最大化编辑器。
  4. Window |窗口 | Apply Window Layout, you can choose Normal or Maximized editor应用窗口布局,您可以选择普通或最大化编辑器
  5. Visual Studio assigns these shortcut keys automatically of Ctrl+Alt+1 and Ctrl+Alt+2 to the first two Apply Window Layout choices Visual Studio 将 Ctrl+Alt+1 和 Ctrl+Alt+2 的这些快捷键自动分配给前两个应用窗口布局选项

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM