vscode手动配置git-bash
小于 1 分钟
"User 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": {
"source": "Git Bash",
"path": [
// "D:\\app\\PortableGit\\git-bash.exe" // gui
"D:\\app\\PortableGit\\bin\\bash.exe" // open in vscode-terminal
],
"args": [
"--login",
"-i"
],
}
},
"terminal.integrated.defaultProfile.windows": "Git Bash"
}