我现在使用VSCode一段时间,直到今天终端正如预期的那样工作。但现在我无法更改默认的集成终端。无论我在设置中设置什么,它总是“cmd”。
settings.json似乎很好:
{
"window.zoomLevel": -1,
"files.associations": {
"*.testset": "feature"
},
"git.autofetch": true,
"C_Cpp.updateChannel": "Insiders",
"terminal.integrated.shell.windows": "C:\\Program Files\\Git\\bin\\bash.exe"
}
但每个新终端仍然是“cmd”。不是“bash”或“PS”。
问题出在我的工作区设置中。 “project.code工作空间”
{
....
"settings": {
"terminal.integrated.shell.windows": "cmd.exe"
}
}
通过从文件中删除此行,问题得到解决。现在我可以更改默认的集成终端。