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

前端 未结 17 1872
爱一瞬间的悲伤
爱一瞬间的悲伤 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条回答
  •  旧时难觅i
    2020-11-28 00:35

    For me this is the only combination worked!

    "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\git-cmd.exe",
    "terminal.integrated.shellArgs.windows": [
      "--command=usr/bin/bash.exe",
      "-l",
      "-i"
    ]
    

    With git-bash.exe as the ...shell.windows, every time the bash was opening outside VS!!

    Thank God it worked finally!! Else, I was planning to wipe out VS completely and reinstall it (making me to reinstall all my extensions and redo my customizations!)

提交回复
热议问题