1. 打开vscode
  2. 文件->首选项->设置,打开设置(快捷键:ctrl + ,
  3. 搜索shell windows

  1. 选择默认的终端为Git Bash
  2. 重启VSCode后,新建的终端将默认使用Git Bash。