1.先点开左下角的设置
2.在上方输入settings
- 点击
在settings.json中编辑
4.里面内容是这样的
{
"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell",
"args": ["-NoLogo", "-NoExit", "-Command", "chcp.com 65001"]
},
"Command Prompt": {
"path": ["${env:windir}\\Sysnative\\cmd.exe", "${env:windir}\\System32\\cmd.exe"],
"args": ["/K", "chcp 65001"],
"icon": "terminal-cmd"
}
},
"workbench.settings.applyToAllProfiles": [
],
}
5.新建一个工程文件来验证,随便命名
6.这里我们输出了四次都是正确的