Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using git-bash as integrated terminal in Visual studio

Git bash integrates well into VS Code but not Visual studio. In VS Code, it opens in the terminal tab but in Visual Studio (17.4.2), it opens as a separate window. Is there a way I can get git bash to open as an integrated terminal, just like Developer Powershell?

like image 521
mbyamukama Avatar asked Oct 12 '25 09:10

mbyamukama


1 Answers

I couldn't reproduce this problem. git-bash runs in the terminal tab as expected.

What I did:

  1. From the menu choose Tools -> Options
  2. In the Options dialog choose Environment -> Terminal
  3. Add a new Profile with
    • Name: Git Bash
    • Shell Location: C:\Program Files\Git\bin\bash.exe
    • Arguments: -i -l

The terminal in Visual Studio is based on the Windows Terminal. I used the 'Git Bash' profile in Windows Terminal as the template for the profile in Visual Studio.

like image 94
Jonathan Dodds Avatar answered Oct 14 '25 13:10

Jonathan Dodds