vscode修改终端为git bash
一:找到git安装路径
定位到文件夹中得到路径:
"D:/Program Files/Git/bin/bash.exe"
二: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"
},
"GitBash": {
"path": "D:/Program Files/Git/bin/bash.exe"
}
},