如图所示:
![](https://img.haomeiwen.com/i8739576/857f96854ee2c424.png)
1.打开VS Code设置,快捷键Ctrl + Shift + P ;
2.在打开的对话框搜索setting,找到“首选项:打开设置”;
3.在“搜索设置 ”对话框搜索“shell”,找到 “Terminal > Integrated > Automation Shell:Windows”;
![](https://img.haomeiwen.com/i8739576/09677a03042081e9.png)
4.点击“在settings.json中编辑”选项;
5.在配置项中添加如下内容:"terminal.integrated.shell.windows": path+"Git\bin\bash.exe"
![](https://img.haomeiwen.com/i8739576/b4ab82114fce9e10.png)
网友评论