在setting中
搜索code-runner.executorMap
修改 chcp 相关指令,65001为GBK,936为utf8
{
"editor.fontSize": 16,
"editor.find.cursorMoveOnType": false,
"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"overrideName": true,
"args": [
"-NoExit",
"/c",
"chcp 936"
],
"icon": "terminal-powershell",
"env": {
"TEST_VAR": "value"
}
}
},
"terminal.integrated.defaultProfile.windows": "PowerShell",
}