File -> Preference -> Settings -> Extensions -> Scroll down and find “Edit in settings.json”

然后在最后添加以下内容

"terminal.integrated.profiles.windows": {
"VS2019": {
"path": "cmd.exe",
"args": ["/k", "C:\\Program Files (x86)\\Microsoft Visual Studio\\2019\\Community\\Common7\\Tools\\VsDevCmd.bat"]
}
},
"terminal.integrated.automationShell.windows": null,
"terminal.integrated.cursorBlinking": true, // 可选,设置光标属性
"terminal.integrated.cursorStyle": "line", // 可选, 设置光标属性