1、随便打开一个终端,点击配置终端设置 2、找到windows打开setting.json文件 3、键入配置文件保存即可 "terminal.integrated.profiles.windows": { "bash": { "path": "D:\\Git\\bin\\bash.exe", // 找到自己git安装目录所在xxx\bash.exe "args": [] } }, "terminal.integrated.defaultProfile.windows": "bash",