技巧:在 VSCode 中集成 GitBash
2022-10-18 18:00 作者:方應(yīng)杭講編程 | 我要投稿
在用戶(hù)設(shè)置 JSON?文件中加入一些配置即可,這里有兩點(diǎn)需要注意:
你要把配置中的 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 小技巧,請(qǐng)查看?我的 VSCode 技巧匯總。
完。
標(biāo)簽: