vscode添加gitbash终端方法

1.打开vscode
2.点击文件,ctrl+,
3.搜索shell windows

{
     ...
    // 添加如下代码
    "terminal.integrated.profiles.windows": {
      "gitBash": {
        "path": "D:\\Git\\bin\\bash.exe",  //本地bash程序的路径
      }
  },
  "terminal.integrated.defaultProfile.windows": "gitBash"
}

1.保存完配置文件后,回到原来的地方,下拉框选择刚才添加的gitBash
2.重启vscode,然后打开终端,就可以看到添加的gitBash终端了


posted @ 2022-03-05 19:30  我在路上回头看  阅读(1837)  评论(0)    收藏  举报