Abhijith Kolanakuduru
Abhijith Kolanakuduru

Reputation: 83

How to make DEBUG CONSOLE as default tab in Visual Studio Code?

I'm using Visual Studio Code to learn Python. How can I make DEBUG CONSOLE as default tab in Visual Studio Code? Whenever I debug, this tool loads terminal which has lot of text which is confusing. I click on DEBUG CONSOLE tab to see my output. Wondering if there is any way to get rid of that terminal tab (just the tab, I understand we need terminal for code to work). I tried right clicking on TERMINAL tab and hiding it, but it hides only temporarily. Help appreciated.

Also, what does OUTPUT tab do?

Upvotes: 2

Views: 3990

Answers (1)

Zilong Li
Zilong Li

Reputation: 958

You can press the hotkey to get the debug console:

Windows: Ctrl + Shift + D 
macOS: shift + command + Y

Edit: In your project repo, find .vscode/launch.json file (create one if none exists) and add the following:

{
    "version": "3.5",
    "configurations": [
        {
            "type": "python",
            "request": "launch",
            "name": "Python: Current File",
            "program": "${file}",
            "console": "none"
        }
    ]
}

Then relaunch VSCode for the change to take effect.

Upvotes: 1

Related Questions