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

新版本通过 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)