lvxianchao / notes

狗屁不通瞎写的博客
https://coderlxc.com
1 stars 0 forks source link

Windows 10 上将 VSCode 的默认终端设置为 Git Bash #49

Open lvxianchao opened 1 year ago

lvxianchao commented 1 year ago

打开设置,搜索 terminal.integrated.profiles.windows,然后点击 在 settings.json 中编辑:

image

添加如下配置项,其中 path 路径需要换成你自己的:

  "GitBash": {
      "path": "D:\\Program Files\\Git\\bin\\bash.exe",
      "args": [],
      "icon": "terminal-bash"
  },

terminal.integrated.profiles.windows 的值改为 GitBash,重启 VSCode。

GitBash 中间不能有空格,否则无法识别