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

前端 未结 17 1842
爱一瞬间的悲伤
爱一瞬间的悲伤 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:37

    Add the Git\bin directory to the Path environment variable. The directory is %ProgramFiles%\Git\bin by default. By this way you can access Git Bash with simply typing bash in every terminal including the integrated terminal of Visual Studio Code.

    How to set the path and environment variables in Windows

提交回复
热议问题