I looked at this link which talks about changing the default command shell in the integrated terminal of Visual Studio Code. I was successfully able to change it to Git Bash usi
No need to keep changing your default terminal setting. Install the Shell Launcher extension, configure it, and then ctrl-shift-t
to select which terminal you want to open inside of VS Code.
As of June 17 '2018, things have become really smooth in Visual Studio Code when it comes to changing the integrated command shell. I'm enlisting all the options here:
powershell
, press Enter and the command shell changes to PowerShell. Similarly it works for all other types of command shells installed in your product.Terminal: Select Default Shell
as shown in the snapshot below.Once selected, then choose the default command shell of your choice to change the settings permanently:
In recent version (1.15.0) you can
+
signYou can put this in your settings file, and uncomment which one you need.
// 64-bit cmd if available, otherwise 32-bit
//"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\cmd.exe"
// 64-bit PowerShell if available, otherwise 32-bit
//"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\WindowsPowerShell\\v1.0\\powershell.exe"
// Git Bash
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe"
// Bash on Ubuntu (on Windows)
//"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\bash.exe"