VS Code Integrate Git Bash as Default Terminal
Let’s quickly have a look at how to integrate Git Bash as the default integrated terminal in Visual Studio Code.
By default, VS Code comes with Powershell as the default terminal if you’re on Windows.
Let’s change that and set Git Bash instead.
Install Git on your machine
First, you have to make sure that you have Git installed on your machine.
To check if you have Git installed, open up a command line and type in
If you don’t have Git installed, go over to this website, download, and then install Git.
Back to VS Code, there are several ways we can integrate Git Bash as the default terminal.
The easiest way is to press down
CTRL + SHIFT + P and then type in “select default profile“.
The drop-down includes every shell that is installed in your system that VS Code was able to detect.
Now simply select Git Bash and open up a new terminal window by pressing down
CTRL + SHIFT + ~ (tilde) to check if Git Bash opens up as the default terminal.
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.
If none of the above worked for you, there is a third way.
CTRL + SHIFT + P and type in “open settings” and open the
At the end of the file, add the following lines of code:
Make sure the path is correct, then save the file and reopen a new terminal to make sure Git Bash opens up as default.
I hope you found this article helpful.
Let me know what you think about this article in the comments section below.
If you find this article helpful, please share it with others and subscribe to the blog to support me, and receive a bi-monthly-ish e-mail notification on my latest articles.