升级了vscode之后,发现终端变为cmd了,查了下setting.json文件,发现提示如下:
提示此配置不再支持
解决办法:
1.在.setting.json中增加以下配置:
"terminal.integrated.profiles.windows": {
"PowerShell -NoProfile": {
"source": "PowerShell",
"args": ["-NoProfile"]
},
"Git-Bash": {
"path": "D:\\Program Files\\Git\\bin\\bash.exe",//填自己本地的bash.exe的路径
"args": []
}
},
2.重启vscode
看到终端还是cmd,别急,选择这里切换终端并将其设置为默认的
切换终端