當VSCode升級至1.57.1(2021.6.17)時,會出現警告提示:
此項已棄用,配置默認 shell 的新推薦方法是在 #terminal.integrated.profiles.windows# 中創建一個終端配置文件,並將其配置文件名稱設置為 #terminal.integrated.defaultProfile.windows# 中的默認值。此操作當前將優先於新的配置文件設置,但將來會發生更改。

新版配置如下:
"terminal.integrated.profiles.windows": {
"Git-Bash": {
"path": "D:\\program files\\Git\\bin\\bash.exe",
"args": [],
"icon": "terminal-bash"
},
},
"terminal.integrated.defaultProfile.windows": "Git-Bash"

使用

