visual-studio Visual Studio - 有什么办法可以让“输出”和“错误列表”窗口在调试会话后不出现?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3241685/
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

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 12:12:44  来源:igfitidea点击:

Visual Studio - Is there any way to make the "Output" and "Error List" windows not appear after a debugging session?

visual-studio

提问by flatline

It just occurred to me, after years of closing these two windows after a debugging session, that there may be a way to turn them off. I generally have the output window open while debugging and only check the error list periodically for warnings, and can always get to them if I want them anyway. Hoping someone else may know of a way to stop the default behavior?

在调试会话后关闭这两个窗口多年后,我突然想到可能有办法将它们关闭。我通常在调试时打开输出窗口,只定期检查错误列表是否有警告,如果我想要它们,总是可以找到它们。希望其他人可能知道停止默认行为的方法?

回答by Jason Williams

Visual Studio remembers the window layout for coding and debugging separately, so removing the output window whileyou are debugging will not affect the "coding" state - you need to close the output window before you debug or it will reappear when debugging finishes.

Visual Studio的回忆窗口布局编码和调试分开,以便消除在输出窗口,而你在调试不会影响“编码”状态-你需要关闭输出窗口调试或调试结束时,它会重新出现之前。

In Tools>Options, Projects and Solutions, there are options "Always show error list if build finishes with errors" and "Show output window when build starts" which cause the error/output windows to be shown automatically just before you start debugging. These could be the culprits for adding an error/output window that then reappears when you exit debugging mode.

在工具>选项、项目和解决方案中,有选项“如果构建完成时出现错误,则始终显示错误列表”和“构建开始时显示输出窗口”,这会导致错误/输出窗口在您开始调试之前自动显示。这些可能是添加错误/输出窗口的罪魁祸首,然后在您退出调试模式时重新出现。

enter image description here

在此处输入图片说明

I have the output window "dockable" and pinned open. When I want to see it I use ctrl+alt+O, and to get rid of it I click into it and shift-escape. The output window "magically" disappears whenever I dont want it, but if I pay close attention I can see that I'm hitting the hotkey automatically myself :-)

我有输出窗口“可停靠”并固定打开。当我想看到它,我用ctrl+ alt+ O,并摆脱它,我点击进入它,shift- escape。每当我不想要时,输出窗口就会“神奇地”消失,但是如果我密切注意,我可以看到我自己正在自动按下热键 :-)