How can I set the new Windows Terminal application to be used as debugging console in Visual Studio 2019?
By default it launches cmd.exe when I debug.
How can I set the new Windows Terminal application to be used as debugging console in Visual Studio 2019?
By default it launches cmd.exe when I debug.
To add to @Bravo's answer, I also tried searching the Windows registry for variants of "cmd", "cmd.exe" and so on in areas of the registry dedicated to Visual Studio, and couldn't seem to find anything.
A search of *.config, *.xml, *.json in Visual Studio related directories didn't seem to yield anything useful either.
For now, I've requested this feature in the Developer Community. If it makes sense to you, you might consider voting on that feature.
After the release of windows terminal 1.12 in combination with Windows 11 (or Windows Insider Program Dev Channel) it is now possible to set default terminal and point to Windows Terminal. After doing that the Visual Studio debugging console gets hosted in windows terminal when debugging console applications in visual studio (tested in vs2022)!
Currently, it is not supported yet, see the github issue Change Windows OS to support default terminal [defterm] · Issue #492 · microsoft/terminal
But maybe you can try below, locate the executable file of Windows Terminal, namely wt.exe or wtd.exe and record the path, then find in configs of VS to use path instead of cmd.exe.
Wish it be helpful for you!
Also you can run windows terminal, start your console app in it, attach VS's debugger to your console app on windows terminal.
Useful links: