gpt4 book ai didi

visual-studio - 在 Visual Studio 中显示/隐藏下部 Pane (错误列表、输出、监视)的键盘快捷键

转载 作者:行者123 更新时间:2023-12-01 09:13:19 25 4
gpt4 key购买 nike

是否有任何键盘快捷键或替代方法可以在 Visual Studio 中显示/隐藏下部 Pane (错误列表、输出、监视等选项卡)。我正在寻找类似于 Ctrl + R 的内容在 Microsoft SQL Management Studio 中切换结果 Pane 。

我知道我可以固定/取消固定、调整大小或在下部 Pane 中移动,但这不是很方便。我喜欢这样一个事实,即当我输入代码时,Visual Studio 即时显示任何编码错误,但为此我必须保持错误 Pane 固定,但这会减少我的编码窗口,特别是在使用单显示器时系统或笔记本电脑上。如果我保持它不固定,那么我必须时不时地单击错误列表选项卡进行检查。

enter image description here

最佳答案

中没有命令VS2017 用于切换工具窗口。对我来说,我安装了宏扩展,编写了一个隐藏所有工具窗口的脚本,并将快捷键绑定(bind)到这个宏。

以下是步骤:

1) 首先,您需要安装 Macros for Visual Studio

2) 然后在宏浏览器中,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) 在宏浏览器中将此宏设置为宏命令 1。

4) 最后,在 Tools> Options> Environment> Keyboard , 分配
“Tool.MacroCommand1”到您最喜欢的键盘快捷键。

就个人而言,我配置 Alt + * 用于显示/隐藏工具窗口
  • Alt + `: Tool MacroCommand1(用于隐藏所有工具窗口)
  • Alt + 1:查看解决方案资源管理器
  • Alt + 2:查看书签
  • Alt + 3:查看查找结果
  • Alt + 4:查看输出
  • Alt + 5:查看调用层次结构
  • Alt + 6:查看任务列表
  • 关于visual-studio - 在 Visual Studio 中显示/隐藏下部 Pane (错误列表、输出、监视)的键盘快捷键,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52502446/

    25 4 0
    Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
    广告合作:1813099741@qq.com 6ren.com