打开vscode 文件->首选项->设置,打开设置(快捷键:ctrl + ,) 搜索shell windows 选择默认的终端为Git Bash 重启VSCode后,新建的终端将默认使用Git Bash。