Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.'

like image 331
Lehks Avatar asked Aug 27 '19 13:08

Lehks


1 Answers

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

like image 54
VonC Avatar answered Sep 28 '22 01:09

VonC