Skip to content

Use Git Bash as Integrated Terminal in VS Code

November 18th, 2016 - SoftwareTutorial(1 min)

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:

"": "C:\\Program Files\\Git\\bin\\bash.exe"

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:

"": "C:\\Windows\\sysnative\\bash.exe"
Share on

A little experiment: