vscode官网说明:code.visualstudio.com/docs/termin…
vscode setting文件配置:
{
// 默认打开的终端工具
"terminal.integrated.defaultProfile.windows": "Git Bash",
"terminal.integrated.profiles.windows": {
"Git Bash": {
// git的路径,注意是json, "\"符号前边需要转义符 \
"path": "D:\\Scoop\\shims\\bash.exe",
}
}
}
找不到git路径??
cmd中输入where git,找到git.exe,如下图
本以为这样配上就完了,没想到报错了???
另寻他路呗 —_—
然后就找到了此路径下的其他exe相关文件,挺多,双击点开看看哪个能用配哪个就完了,我的是bash.exe
哦,顺便提一句,我是用的Scoop做的包管理工具,所以路径都在Scoop下,不用在意为啥路径和你们的不一样,你们在哪安的git上哪找就完了