赞
踩
将以下配置添加到vscode中的settings.json中
"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": {
"path": "D:\\Program Files\\Git\\bin\\bash.exe",
"args": [],
"icon": "terminal-bash"
}
},
"terminal.integrated.defaultProfile.windows": "Git-Bash",
terminal.integrated.profiles.windows
这个配置项是就是添加终端的terminal.integrated.defaultProfile.windows
这个是配置默认选项的配置时的两个注意点:
Git-Bash
’,不能是“Git Bash
”,否则vscode检测不到
这样就可以啦如图:
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。