How do I use Bash on Windows from the Visual Studio Code integrated terminal?

git-bash, visual-studio-code

Solution

Install Git from https://git-scm.com/download/win

Open Visual Studio Code and press and hold Ctrl + ` to open the terminal.

Open the command palette using Ctrl + Shift + P.

Type - Select Default Profile

Select Git Bash from the options

Click on the + icon in the terminal window

The new terminal now will be a Git Bash terminal. Give it a few seconds to load Git Bash

You can now toggle between the different terminals as well from the dropdown in terminal.

Problem

Visual Studio Code on Windows uses PowerShell by default as the integrated terminal. If you want to use Bash from Visual Studio Code, what steps should be followed?

Original source

Related problems