美文网首页
vscode (v1.57.0) 配置默认终端为git bash

vscode (v1.57.0) 配置默认终端为git bash

作者: MyLee | 来源:发表于2021-06-17 15:27 被阅读0次

新版本通过 terminal.integrated.shell.windows 配置git bash已经失效,新版本配置使用terminal.integrated.profiles.windows,配置如下:

"terminal.integrated.profiles.windows": {
      "PowerShell": {
          "source": "PowerShell",
          "icon": "terminal-powershell"
      },
      "Git-Bash": {
          "path": "D:\\Git\\bin\\bash.exe",// Git的bin文件夹下bash.exe的路径,注意不是git-bash.exe,否则会独立拉起git bash窗口
          "args": []
      }
  },
  "terminal.integrated.defaultProfile.windows": "Git-Bash"

配置后如无效果,请重启vscode

相关文章

网友评论

      本文标题:vscode (v1.57.0) 配置默认终端为git bash

      本文链接:https://www.haomeiwen.com/subject/liecyltx.html