DEV Community

loading...

Discussion on: How to set Git Bash as integrated terminal in VSCode in 2021

Collapse
kadiryumlu profile image
Kadir Yumlu

It doesnot work for me. I still have powershell as default shell.

Collapse
projektorius96 profile image
projektorius96

@kadiryumlu try this:
{
"terminal.external.windowsExec": "",
"terminal.explorerKind": "external",
"terminal.integrated.cwd": "C:\Users\%USERNAME%",
"php.validate.executablePath": "C:\xampp\php\php.exe",
"browser-preview.startUrl": "localhost/",
"phpserver.phpPath": "C:\xampp\php\php.exe",
"workbench.editor.untitled.hint": "hidden",
"workbench.colorTheme": "Visual Studio Light",
"terminal.integrated.tabs.enabled": true,
"[json]": {

    "editor.quickSuggestions": {
        "strings": true
    },
    "editor.suggest.insertMode": "replace"
},
"terminal.integrated.defaultProfile.windows": "Git Bash",
"terminal.integrated.profiles.windows": {
    "PowerShell": null,
    "Command Prompt": {
        "path": [
            "${env:windir}\Sysnative\cmd.exe",
            "${env:windir}\System32\cmd.exe"
        ],
        "args": [],
        "icon": "terminal-cmd"
    },
    "Git Bash": {
        "source": "Git Bash"
    },
    "profile": {
        "path": "C:\Program Files\Git\bin\bash.exe",
        "args": [
            "--login"
        ]
    }
},
Enter fullscreen mode Exit fullscreen mode

}

Collapse
andrewriveradev profile image
Andrew Author

I updated the article should work now!