How to integrate git bash in visual studio code on Window

Viewed 240

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?

0 Answers
Related