Reputation: 3166
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
Reputation: 11
Just Right click on it and click on 'Reset Location'. It will be restored to its original location.
Upvotes: 1
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:
Upvotes: 13