问题:
VScode升级到1.60.05版本后,终端配置不支持"terminal.integrated.shell.windows",想要在VScode终端将bash设置为默认终端,该如何解决?
目标呈现效果:
出现状况:
解决方法:
1.打开VScode找到左下角的设置图标,再点击设置进入设置窗口。
2.在设置搜索窗口中输入 Profiles: Windows,找到Terminal › Integrated › Profiles: Windows。再点击settings.json.进入文件编辑。
3.在"terminal.integrated.profiles.windows"下添加
"bash": {
"path": "C:\\Program Files\\Git\\bin\\bash.exe",
"args": [ ]
}
注:其中path后面的"C:\\Program Files\\Git\\bin\\bash.exe"是你的bash文件路径(git文件夹下)。
添加具体位置如下:
4.添加后保存文件,然后你就能在你的vscode的中端中找到你的bash了,点击小三角行就能看见,如果没有就重启一下VScode。
5.bash设置为默认终端,在"terminal.integrated.default profiles.windows"路径下,下拉选择bash为默认路径。
6.成功后终端呈现效果。之后就可以美美的使用终端了,哇哦!!!