Visual Studio 2019 has recently added a new (much-needed) terminal feature in its 16.6 version. It's really great, but I'm having a hard time integrating git bash in the profiles.
I've tried a few variations of arguments and whatnot of the following profile:
But whenever I try selecting that profile, the terminal shortly displays a blank screen, then opens the default PowerShell terminal.
What am I doing wrong and how can I configure the profile correctly?
Git Bash is offered to provide a terminal Git experience.
Another way to select a default terminal is to open up a new terminal in VS Code. Next to the big plus sign, click on the dropdown and select “Select Default Profile“. From the dropdown select “Git Bash” and you're all set. Reopen a new terminal to make sure Git Bash opens up as default.
In case you haven't figured it out already: You need to add argument -i (to make the shell interactive), and I also recommend --login (to make the shell read default profile configuration files).
Try adding the following in the Arguments field:
--login -i
I used C:\Program Files\Git\bin\bash.exe as the Shell Location, and it worked fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With