技术饭
vscode1.60版本不支持:terminal.integrated.shell.windows
copylian
0 评论
21940 浏览
2021.09.04
旧版VScode 的 git bash 终端配置如下:
"terminal.integrated.shell.windows": "D:\\Program Files\\Git\\bin\\bash.exe"
当VSCode升级至1.57.1(2021.6.17)时,会出现警告提示:
此项已弃用,配置默认 shell 的新推荐方法是在 #terminal.integrated.profiles.windows# 中创建一个终端配置文件,并将其配置文件名称设置为 #terminal.integrated.defaultProfile.windows# 中的默认值。此操作当前将优先于新的配置文件设置,但将来会发生更改。
VSCode 官方配置文档:https://code.visualstudio.com/docs/editor/integrated-terminal#_configuration
新版配置如下:
"terminal.integrated.profiles.windows": {
"Git-Bash": {
"path":"D:\\Program Files\\Git\\bin\\bash.exe",
"args": []
}
},
"terminal.integrated.defaultProfile.windows": "Git-Bash"

感谢你的支持,我会继续努力!

扫码打赏,感谢您的支持!
文明上网理性发言!