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

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

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

    Enter image description here

  3. Open the command palette using Ctrl + Shift + P.

  4. Type – Select Default Profile

  5. Select Git Bash from the options

  6. Click on the + icon in the terminal window

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

    Enter image description here

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

    Enter image description here

Leave a Comment