应该没有程序员会用powershell 或者cmd 吧?
今天在网上看了vscode集成gitbash的教程,有个小tips顺带说一下吧
- 打开vscode -> file -> Preference -> Setting -> 输入 terminal
- 找到:
Terminal › Integrated › Automation Shell: Windows
A path that when set will override terminal.integrated.shell.windows and ignore shellArgs values for automation-related terminal usage like tasks and debug. - edit in setting.json
{
"terminal.integrated.shell.windows":
"F:\\GitForWindows\\Git\\bin\\bash.exe", # 换成你自己的bash目录
}
tips: 不要用 与bin一个目录的 git-bash.exe 不然vscode 打开后还是会弹出窗口很不方便 … 要用bin目录下的
刚去看了下目前支持的系统有
- terminal.integrated.shell.osx
- terminal.integrated.shell.linux
- terminal.integrated.shell.windows
然后保存一下 就可以内置用gitbash了