VSCode 配置集成终端为 GitBash

PPPerryPan2022-07-06techGitProgramming

VSCode 配置集成终端为 GitBash

settings.json 加入

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

  2. 搜索 shell windows ,设置gitBash image-20220705163352612

Last Updated 4/13/2026, 2:35:35 PM