visual-studio-codevscode-debugger

How to prevent VS Code from opening the internal debug console?


When I debug my C# code, I don't want to open the internal debug console.

My setting in ".vscode/launch.json" is:

"console": "externalTerminal"

I only need the external console:

enter image description here

I've already disabled the debug console:

enter image description here

But the debug console still appears.

Please help to prevent revealing debug console.


Solution

  • I found a solution, you need to do 2 things:

    1. In the first object of ".vscode/launch.json":

      "console": "externalTerminal",
      "internalConsoleOptions": "neverOpen",
      
    2. In the array, first object of ".vscode/tasks.json":

      "presentation": {
        "reveal": "never"
      }