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

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

    This, at least for me, will make Visual Studio Code open a new Bash window as an external terminal.

    If you want the integrated environment you need to point to the sh.exe file inside the bin folder of your Git installation.

    So the configuration should say C:\\\\bin\\sh.exe.

提交回复
热议问题