简体   繁体   English

在 Visual Studio 中显示/隐藏下方窗格(错误列表、输出、监视)的键盘快捷键

[英]Keyboard shortcut for show/hide the lower pane (Error List, Output, Watch) in Visual Studio

Is there any keyboard shortcut or alternative way to show/hide the lower pane (Error List, Output, Watch etc. tabs) in Visual Studio.是否有任何键盘快捷键或替代方法可以在 Visual Studio 中显示/隐藏下部窗格(错误列表、输出、监视等选项卡)。 I am looking for something similar to Ctrl + R in Microsoft SQL Management Studio which toggles the Results pane.我正在 Microsoft SQL Management Studio 中寻找类似于Ctrl + R东西,它可以切换结果窗格。

I understand I can pin/unpin, resize or move around the lower pane but it is not very convenient.我知道我可以固定/取消固定、调整大小或在下部窗格中移动,但这不是很方便。 I like the fact that when I am typing code, Visual Studio on-the-fly shows the any coding errors, but for that I have to keep the Errors pane pinned, but that reduces my coding window, specially when working on single-monitor systems or on laptops.我喜欢这样一个事实,即当我输入代码时,Visual Studio 即时显示任何编码错误,但为此我必须保持错误窗格固定,但这会减少我的编码窗口,特别是在单显示器上工作时系统或笔记本电脑。 If I keep it unpinned, then I have to every now and then click on the Error List tab to check.如果我不固定它,那么我必须时不时地单击“错误列表”选项卡进行检查。

在此处输入图片说明

There is no command in VS2017 for toggle the tool window. VS2017 中没有用于切换工具窗口的命令。 For me, I install the macro extension, write a script for hiding all tool windows and binds a shortcut key to this macro.对我来说,我安装了宏扩展,编写了一个隐藏所有工具窗口的脚本,并为这个宏绑定了一个快捷键。

Here is the steps:以下是步骤:

1) First, you will need to install the Macros for Visual Studio 1) 首先,您需要为 Visual Studio安装

2) Then in macro explorer, Tools> Macro> Macro Explorer , add this macro: 2)然后在宏资源Tools> Macro> Macro ExplorerTools> Macro> Macro Explorer ,添加这个宏:

var windows = dte.Windows;    
for (var i = 1; i <= windows.Count; i++) {
    var window = windows.Item(i);

    // Check that this is a tool window and not a document
    if (window.Document == null && window.Visible) {
        window.Activate();
        dte.ExecuteCommand("Window.Hide");
    }
}

3) Set this macro as macro command 1 in macro explorer. 3) 在宏资源管理器中将此宏设置为宏命令 1。

4) Finally, in Tools> Options> Environment> Keyboard , assign the "Tool.MacroCommand1" to your favorite keyboard shortcut. 4) 最后,在Tools> Options> Environment> Keyboard ,将“Tool.MacroCommand1”分配给您最喜欢的键盘快捷键。

Peronsally, I configure Alt + * for showing/ hiding tool windows个人而言,我配置Alt + *以显示/隐藏工具窗口

  • Alt + ` : Tool MacroCommand1 (for hide all tool window) Alt + ` : Tool MacroCommand1(用于隐藏所有工具窗口)
  • Alt + 1 : View Solution explorer Alt + 1 :查看解决方案资源管理器
  • Alt + 2 : View Bookmark Alt + 2 : 查看书签
  • Alt + 3 : View Find results Alt + 3 :查看查找结果
  • Alt + 4 : View Output Alt + 4 :查看输出
  • Alt + 5 : View Call heirarchy Alt + 5 :查看调用层次结构
  • Alt + 6 : View Task List Alt + 6 :查看任务列表

I haven't changed much from the default setup and on mine shortcuts currently exist for:我的默认设置没有太大变化,我的快捷方式目前存在于:

  • Ctrl + Alt + O - display the output window Ctrl + Alt + O - 显示输出窗口
  • Ctrl +- \\ , Ctrl + E - display Error window Ctrl +- \\ , Ctrl + E - 显示错误窗口

They don't toggle though as far as I know.据我所知,他们不会切换。

Hot Windows扩展为工具窗口管理提供了额外的命令。

Alternatively, in Visual Studio 2019...或者,在 Visual Studio 2019 中...

Display or focus on a lower pane, if not already focused显示或聚焦在较低的窗格上(如果尚未聚焦)

Ctrl + Alt + O ( Output Window, for instance ) Ctrl + Alt + O (例如输出窗口)

Once any lower pane is focused, repeat the close sequence until all lower panes are closed.聚焦任何下部窗格后,重复关闭序列,直到关闭所有下部窗格。

Close a lower pane关闭下部窗格

Shift + Esc Shift + Esc

This works with the default settings and no plugins are required.这适用于默认设置,不需要插件。

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

相关问题 如何在Visual Studio 2005的错误列表的“消息”窗格中显示输出? - How do I get output to show up in the Messages pane of the Error List for Visual Studio 2005? 在Visual Studio中,是否有键盘快捷键显示代码编辑器窗口中的DataTip(鼠标悬停时显示的浮动监视)? - In Visual Studio, is there a keyboard shortcut to show the DataTip (that floating watch that appears on mouseover) in code editor window? 构建中断时错误列表的 Visual Studio 键盘快捷方式 - Visual Studio Keyboard shortcut to Error List when builds break 是否有键盘快捷键来评估Visual Studio中Watch窗口中的表达式? - Is there a keyboard shortcut to evaluate an expression in the Watch window in Visual Studio? 快速观看的 Visual Studio 键盘快捷键 (shift + F9) 不起作用 - Visual Studio Keyboard Shortcut of quick watch (shift + F9) Not Working visual studio键盘快捷键,用于错误描述 - visual studio keyboard shortcut for error description Visual Studio 键盘快捷键 - Visual Studio Keyboard Shortcut 显示方法定义的键盘快捷方式是什么(在Visual Studio 2008中)? - What is the keyboard shortcut (in Visual Studio 2008) to show method definition? Visual Studio 2015中的键盘快捷键 - Keyboard shortcut in visual studio 2015 Visual Studio中的菜单栏键盘快捷键是什么? - What is the Menu Bar keyboard shortcut in Visual Studio?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM