This article outlines the steps to configure Git Bash with Visual Studio Code on Windows. By default, VSCode uses PowerShell as the integrated terminal.
We can configure VSCode to use Git Bash as the integrated terminal. Make sure you have Git Bash, and VSCode installed on your machine.
Configure Git Bash With Visual Studio Code
As we mentioned earlier, VSCode uses PowerShell as the default terminal. We will open VSCode and open the terminal with Ctrl+`.
As seen in the image above, our default terminal is PowerShell. To change this, we will use the Ctrl+Shift+P keyboard short-cut to open the command palette.
Then search for
Select Default Profile and choose
Git Bash from the list.
Your default terminal should be Git Bash after these steps. Delete the PowerShell instance and restart the terminal using the Ctrl+` keyboard shortcuts.
The new terminal is now Git Bash. You can switch between different terminals from the dropdown list on the terminal tab, as shown below.
Now, Git Bash is our default terminal, but we can switch to PowerShell temporarily on the menu above.