Use Git Bash as Integrated Terminal in VS Code

TL;DR:: Install windows git to get bash and add "C:\\Program Files\\Git\\bin\\bash.exe" to "" in VS Code’s user settings.

As I’m trying my hand at developing a node application today, I’m getting frustrated by the Terminate batch job (Y/N) every time I need to restart a script:


Since previously I was developing on linux/macOS, I’m used to bash and I figured that it would be nice to have the bash shell in VS Code’s embedded terminal.

One of the painless ways to have bash on your system is to install git for windows (who hasn’t it yet?).

After you’ve got git (and git bash), you need to insert:

in VS Code’s user configuration file (you can use File -> Preferences -> User Settings). Once you have this saved, you can enjoy the new terminal.



If you have Windows 10 and its Linux subsystem, you can use that one:

A little experiment: If you find this post and ad below useful, please check the ad out :-)

4 thoughts on “Use Git Bash as Integrated Terminal in VS Code

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Scroll to top