当前位置:   article > 正文

vscode中集成gitbash注意事项_terminal.integrated.automationshell.linux (现已弃用)

terminal.integrated.automationshell.linux (现已弃用)

应该没有程序员会用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目录
}	
  • 1
  • 2
  • 3
  • 4

tips: 不要用 与bin一个目录的 git-bash.exe 不然vscode 打开后还是会弹出窗口很不方便 … 要用bin目录下的

刚去看了下目前支持的系统有

  • terminal.integrated.shell.osx
  • terminal.integrated.shell.linux
  • terminal.integrated.shell.windows

然后保存一下 就可以内置用gitbash

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/笔触狂放9/article/detail/728655
推荐阅读
相关标签
  

闽ICP备14008679号