默认是启用的powershell终端,在切换成cmd。
办法如下,
在你项目文件夹里有个.vscode,里边编辑个settings.json
添加如下设置:
{
"terminal.integrated.shell.windows": {
"Command Prompt": {
"path": "C:\\Windows\\System32\\cmd.exe",
"icon": "terminal-cmd.png",
"args": [
"/K chcp 65001 >nul",
]
}
},
"terminal.integrated.defaultProfile.windows": "Command Prompt"
}
这样执行都会自动使用cmd,就这样。