vscode版本:版本: 1.57.1 (user setup)
vscode默認終端是powershell,現更換為cmd
在 setting.json(可通過 ctrl + P 搜索)
之前的命令是
"terminal.integrated.shell.windows": "C:\Windows\System32\cmd.exe"
但提示:詳細了解如何配置 shell
此項已棄用,配置默認 shell 的新推薦方法是在
#terminal.integrated.profiles.windows#
中創建一個終端配置文件,並將其配置文件名稱設置為
#terminal.integrated.defaultProfile.windows#
中的默認值。此操作當前將優先於新的配置文件設置,但將來會發生更改
現在使用以下命令:
"terminal.integrated.profiles.windows": {
"my-cmd": {
"path": "C:\Windows\System32\cmd.exe",
"args": []
}
},
"terminal.integrated.defaultProfile.windows": "my-cmd"
然後重啟 vscode 即可
創作打卡挑戰賽
贏取流量/現金/CSDN周邊激勵大獎