vscode 1.42 设置默认terminal为git bas
2020-03-02 本文已影响0人
无知de绿豆
- ctrl + , 打开setting
-
如图1,1处输入Terminal,选中2处。
图1
-
如图2,找到该部分配置,点击红箭头指示位置。
图2
- 如图3,在配置文件中填入
// Git Bash
"terminal.integrated.shell.windows": "E:\\Program Files\\Git\\bin\\bash.exe",
路径请替换为自己的git bash路径。

-
保存,重启,enjoy。
图4
参考链接:
CSDN, 【vscode设置默认shell】, butterfly5211314, 链接。
Visual Studio Code, 【Integrated Terminal】, 链接。
【How to integrate Git Bash with Visual Studio Code on Windows】, Simon Massey, 链接。