在settings.json文件中添加下列代码(将bash路径替换为你自己的)

    1. "terminal.integrated.profiles.windows": {
    2. "Bash": {
    3. "path": "D:\\Software\\cmder\\vendor\\git-for-windows\\bin\\bash.exe"
    4. },
    5. },
    6. "terminal.integrated.defaultProfile.windows": "Bash",

    重启vscode