[英]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 Explorer
, Tools> 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 + *以显示/隐藏工具窗口
I haven't changed much from the default setup and on mine shortcuts currently exist for:我的默认设置没有太大变化,我的快捷方式目前存在于:
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.