Darkstar Dream
Darkstar Dream

Reputation: 1859

How to integrate git bash in visual studio code on Window

I have installed both visual studio code and git bash on a custom directory in my C:\users\myname\vsc, and C:\users\myname\git folder. So for some reason, visual studio code is not able to detect git bash terminal when I click
on Terminal > Select default Profile.

I tried to add this to add bash as a new terminal

"terminal.integrated.shell.windows": "C:\\Users\\myname\\github\\bin\\bash.exe"

but vsc is saying that this setting is deprecated so I tried this after reading its documentation page.

{    "terminal.integrated.profiles.windows": {
        "Bash": {
            "source": "Git Bash",
        }
    }
}

but this is also not working, so how I can solve this issue?

Upvotes: 2

Views: 1064

Answers (1)

Victor Ian
Victor Ian

Reputation: 1070

Reinstall git for windows into the default location, relaunch VSCode and Git bash will appear on your Launch Profile.

This works for me even with touching the settings.json.

Upvotes: 1

Related Questions