在setting文件中加入以下代码:
"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",