Lehks
Lehks

Reputation: 3166

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

Upvotes: 15

Views: 12879

Answers (3)

Fahad Ali
Fahad Ali

Reputation: 11

Just Right click on it and click on 'Reset Location'. It will be restored to its original location.

Upvotes: 1

Lauro Devescovi
Lauro Devescovi

Reputation: 11

Drag and drop, to move it back to the top...

Upvotes: 1

VonC
VonC

Reputation: 1323383

VSCode 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

Upvotes: 13

Related Questions