0%

vscode添加gitBash终端方法

  1. 打开 vscode
  2. 点击文件,使用ctrl+,快捷键
  3. 搜索 shell windows

1
2
3
4
5
6
7
8
9
10
{
...
// 添加如下代码
"terminal.integrated.profiles.windows": {
"gitBash": {
"path": "D:\\Git\\bin\\bash.exe", //本地bash程序的路径
}
},
"terminal.integrated.defaultProfile.windows": "gitBash"
}

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


赏包辣条吃吧