如图所示:

1.打开VS Code设置,快捷键Ctrl + Shift + P ;
2.在打开的对话框搜索setting,找到“首选项:打开设置”;
3.在“搜索设置 ”对话框搜索“shell”,找到 “Terminal > Integrated > Automation Shell:Windows”;

4.点击“在settings.json中编辑”选项;
5.在配置项中添加如下内容:"terminal.integrated.shell.windows": path+"Git\bin\bash.exe"

网友评论