This is controlled by the console
option in the launch.json
file.
On Windows with externalConsole: false
and console: internalConsole
it will not create a new terminal but uses the existing one.
FMI: https://code.visualstudio.com/docs/cpp/launch-json-reference#_externalconsole
"configurations": [
{
"name": "test",
"type": "cppvsdbg",
"request": "launch",
"program": "${workspaceFolder}/build/test.exe",
"args": [
],
"stopAtEntry": false,
"cwd": "${workspaceFolder}/build/",
"environment": [],
"console": "internalConsole",
"externalConsole": false,
},