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

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

    Latest VS code :

    • if you can't see the settings.json, go to menu File -> Preferences -> Settings (or press on Ctrl+,)
    • Settings appear, see two tabs User (selected by default) and Workspace. Go to User -> Features -> Terminal
    • Terminal section appear, see link edit in settings.json. Click and add "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe",
    • Save and Restart VS code.

    Bash terminal will reflect on the terminal.

提交回复
热议问题