vscode 集成git bash, mingw, mintty 的terminal

设置

右上角打开json文件的设置

输入以下代码:

"terminal.external.windowsExec": "D:\\Program Files\\Git\\bin\\bash.exe",
"terminal.integrated.shell.windows": "D:\\Program Files\\Git\\bin\\bash.exe"

其中的路径,是git所在目录的bin的bash,不要用"D:\Program Files\Git\git-bash.exe",因为这样会弹出窗口,而不是集成到vscode自带的terminal里面

此时再进入terminal就默认是git-bash了

猜你喜欢

转载自www.cnblogs.com/heenhui2016/p/11359688.html