【发布时间】:2019-08-22 17:16:04
【问题描述】:
我使用 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”。
【问题讨论】:
-
它适用于我的笔记本电脑......即使路径中有空格。 VSCode 询问我是否真的要运行 bash.exe,每次单击 + 时,都会创建一个新的 bash 窗口。