【发布时间】:2021-05-11 21:29:00
【问题描述】:
我能找到的关于这个问题的所有其他解决方案都说将下面的设置放在 my.vscode/settings.json 中
"terminal.integrated.shell.windows": "C:\\WINDOWS\\System32\\cmd.exe",
"terminal.integrated.shellArgs.windows": [
"/K",
"C:\\softwares\\cmder\\vendor\\init.bat"
],
直到最近,当我从 git 存储库中删除了我的设置文件时,这一直有效。现在,当我将鼠标悬停在上面的代码上时,我会在弹出窗口中看到此文本
终端在 Windows 上使用的 shell 的路径(默认: C:\windows\System32\WindowsPowerShell\v1.0\powershell.exe)。阅读更多 关于配置外壳。已弃用,请使用
#terminal.integrated.defaultProfile.windows#改为(2)
这让我有点困惑,我不确定我必须改变什么。我尝试将第一个设置更改为
"terminal.integrated.defaultProfile.windows": "C:\\WINDOWS\\System32\\cmd.exe",
但这没有任何效果。 Cmder 没有被用作默认 shell。
【问题讨论】: