Using windows terminal for executing program in vs code

Viewed 560

I use vscode for writing and executing my C++ programs, I use the integrated terminal in vscode for compiling & running the programs(using coderunner) but I want to run my programs in the Windows terminal by default each time I run the program in vscode. Can anyone please help me out with this ?

1 Answers

If you want to use Windows Terminal more easily, you can open Windows Terminal in quake mode. The keybind is win+` by default. This could avoid using the integrated terminal at all, if you prefer.

You could also use the integrated terminal to pass your command to Windows Terminal. Replace ping docs.microsoft.com with the command you want to execute. You can then send build and run commands to Windows Terminal with wt.exe:

wt ping docs.microsoft.com

Alternatively, you can configure debugging behavior for when you press F5. First, configure launch.json to launch your configured external terminal:

    "console": "externalTerminal",

Then configure VS Code settings to set the external terminal for your OS in settings.json:

    "terminal.external.windowsExec": "wt.exe",
Related