VScode终端没有git_bash
步骤1:打开vscode
步骤2:按下键盘的 F1,输入>setting.json
这里选择第一个打开,注意看不是default
步骤3:把以下代码赋值进去,然后保存
"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:\\Git\\bin\\bash.exe",
"args": [],
}
}
我的是这样的:
over!!!