VSCode 配置集成终端为 GitBash

2022/7/6 Git

settings.json 加入

{
	"terminal.integrated.profiles.windows": {
        "gitBash": {
          "path": "D:\\Program Files\\Git\\bin\\bash.exe",		//这里是的的bash路径
        }
  	},
  	"terminal.integrated.defaultProfile.windows": "gitBash"
}
1
2
3
4
5
6
7
8
  1. 文件->首选项->设置,打开设置

  2. 搜索 shell windows ,设置gitBash

image-20220705163352612

Last Updated: 2023/1/12 04:11:40