简体   繁体   中英

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:

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.


VSCode 1.69 (June 2022) will improve that, following issue 148616 and PR 151535 :

Respect debug.console.closeOnEnd setting even when the debug console has been moved to another view.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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