在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",
}
本文指导如何在VSCode的Setting中修改PowerShell配置,将chcp指令设置为65001(GBK)和936(UTF-8),适用于编码转换问题的开发者
2025

被折叠的 条评论
为什么被折叠?



