1.60版本vccode:
(1)找到shell配置文件“setting.json”:
(2)输入"terminal.,在提示中找到"terminal.integrated.profiles.windows":,点击会出现固定的配置信息:vscode检测到有3个可用终端:
powershell(ps),command prompt(cmd),git-bash(git),在 "terminal.integrated.defaultProfile.windows"中指定vscode选择的终端:
最终为:
"terminal.integrated.profiles.windows": {
"PowerShell": {
"source": "PowerShell",
"icon": "terminal-powershell"
},
"Command Prompt": {
"path": [
"${env:windir}\\Sysnative\\cmd.exe",
"${env:windir}\\System32\\cmd.exe"
],
"args": [],
"icon": "terminal-cmd"
},
"Git Bash": {
"source": "Git Bash"
}
},
"terminal.integrated.defaultProfile.windows": "Command Prompt"