简体   繁体   English

vscode - 调试完成后关闭调试控制台

[英]vscode - close debug console when debugging is done

Is it possible to automatically close the debug console when debugging is done?调试完成后是否可以自动关闭调试控制台? Right now it stays open with the text 'Terminal will be reused by tasks, press any key to close it.'现在它保持打开状态,并显示“终端将被任务重用,按任意键关闭它”。

Visual Studio 1.42 now has a setting for that use case: Visual Studio 1.42 现在具有该用例的设置:

See " Setting to hide Debug Console after debugging "请参阅“ 设置以在调试后隐藏调试控制台

A new setting debug.console.closeOnEnd has been introduced that controls whether the debug console should automatically close after debugging has stopped.引入了一个新设置debug.console.closeOnEnd ,用于控制调试控制台是否应在调试停止后自动关闭。


VSCode 1.69 (June 2022) will improve that, following issue 148616 and PR 151535 : VSCode 1.69(2022 年 6 月)将在issue 148616PR 151535之后改进这一点:

Respect debug.console.closeOnEnd setting even when the debug console has been moved to another view.即使调试控制台已移动到另一个视图,也要遵守 debug.console.closeOnEnd 设置。

Close whichever view container contains the debug console.关闭任何包含调试控制台的视图容器。

It avoids seeing the debug view collapsed instead of closed:它避免看到调试视图折叠而不是关闭:

https://user-images.githubusercontent.com/47410353/166419264-0fcbda3a-c15e-405d-a790-360f3270e148.png

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

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