vscode(版本1.59.1)修改终端为gitbash

934 阅读1分钟

vscode版本号

1630035046(1).png

步骤一

在vscode首选项打开设置输入shell.window打开settings.json文件

baa93f4e953129890176206d4ac1fc9.png

步骤二

设置前如下配置:

1630035548(1).png

向打开的文件进行如下配置(可直接复制替代上面代码)

{
  "terminal.integrated.profiles.windows": {
    "PowerShell -NoProfile": {
      "source": "PowerShell",
      "args": [
        "-NoProfile"
      ]
    },
    "Git-Bash": {
      "path": "D:\\Git\\bin\\bash.exe",
      "args": []
    }
  },
"terminal.integrated.defaultProfile.windows": "Git-Bash",
"terminal.integrated.automationProfile.windows": {
  
},
}

最后设置完关闭vscode再打开即可

1630035636(1).png