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

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

    I happen to be consulting for a Fortune 500 company and it's sadly Windows 7 and no administrator privileges. Thus Node.js, Npm, Visual Studio Code, etc.. were pushed to my machine - I cannot change a lot, etc...

    For this computer running Windows 7:

    Below are my new settings. The one not working is commented out.

    {
        "update.channel": "none",
        "terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe"
        //"terminal.integrated.shell.windows": "C:\\Windows\\sysnative\\bash.exe"
    }
    

提交回复
热议问题