技巧:在 VSCode 中集成 GitBash
在用户设置 JSON 文件中加入一些配置即可,这里有两点需要注意:
你要把配置中的 bash.exe 路径换成自己的路径
你要把路径中的 \ 全部替换为 \\
配置如下:
"terminal.integrated.profiles.windows": {
"bash": {
"path": "D:\\Fang\\Software\\cmder\\vendor\\git-for-windows\\bin\\bash.exe",
"args": ["-l", "-i"]
}
},
"terminal.integrated.defaultProfile.windows": "bash",
"terminal.external.windowsExec": "D:\\Fang\\Software\\cmder\\vendor\\git-for-windows\\bin\\bash.exe",

更多 VSCode 小技巧,请查看 我的 VSCode 技巧汇总。
完。