GitBash not showing up as a terminal option in Visual Studio Code

VS Code version 1.57.1.

Added path of Git, Git\bin, Git\cmd in env. Had “Git Bash” profile with source and path elements. Removed source and kept only the path. When adding defaultProfile as “Git Bash” got “Value is not accepted” error. Restarting VS Code did not help.

Changing “Git Bash” to “GitBash” (space removed) finally worked for me:

"terminal.integrated.profiles.windows": {
    "GitBash": {
      "path": ["D:\\ProgramFiles\\Git\\bin\\bash.exe"],
      "args": []
    },
    ...
}
"terminal.integrated.defaultProfile.windows": "GitBash"

I am not sure if space is actually the problem. Because there is a profile “Command Prompt” with space in its name and recognized!!! To confirm this further, changed “PowerShell” to “Power Shell”, and it worked too.

I am not clear how space matters only in the “GitBash” profile.

Leave a Comment