VSCode 1.60.x 版本更新后控制台变回默认系统命令行
发表于 2021-09-04 | 更新于 2021-12-31
总字数: 382 | 阅读时长: 1分钟 | 阅读量: 0
最近 VSCode 更新后,出现了打开控制台后不是自己之前设置得控制台了(博主的是 Git Bash)
直接变成PowerShell,昨天用着还好好的,今天就变了,上网查了一下,很多人都是从 1.5x.x 本本开始就遇到的问题,我这里是今天(2021-9-4)才出现的状况.
就在我正在写这篇文章的时候官网突然更新了,就在两点半的时候我看的文档,现在三点半了,文档居然变了
此项已弃用,配置默认 shell 的新推荐方法是在 #terminal.integrated.profiles.windows# 中创建一个终端配置文件,并将其配置文件名称设置为 #terminal.integrated.defaultProfile.windows# 中的默认值。此操作当前将优先于新的配置文件设置,但将来会发生更改。
官网: https://code.visualstudio.com/docs/editor/integrated-terminal#_configuration
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
| { "terminal.integrated.profiles.windows": { "PowerShell -NoProfile": { "source": "PowerShell", "args": ["-NoProfile"] } }, "terminal.integrated.defaultProfile.windows": "PowerShell -NoProfile" }
{ "terminal.integrated.profiles.windows": { "Git-Bash": { "path": "G:\\Program Files\\Git\\bin\\bash.exe", "args": [] } }, "terminal.integrated.defaultProfile.windows": "Git-Bash" }
|