2

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?

2
  • 1
    I had the same issue and I fixed it by reinstalling git to the default path. My VS Code files were installed to the default path (C:\Users\myname\AppData\Local\Programs\Microsoft VS Code), but I installed git to a different path (E:\Git). All I did was to reinstall git to the default path (C:\Program Files\Git) and Git Bash is now visible to my VS Code. Got that solution here if you want to know more dev.to/jemengullo/comment/1gakp Commented Jul 24, 2021 at 12:07
  • 1
    Yeah you are right, I had to do that same Commented Jul 25, 2021 at 6:12

1 Answer 1

1

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.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.