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

前端 未结 17 1870
爱一瞬间的悲伤
爱一瞬间的悲伤 2020-11-28 00:28

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?

17条回答
  •  悲哀的现实
    2020-11-28 00:50

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

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

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

    4. Type - Select Default Shell

    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

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

提交回复
热议问题