vscode git bash终端配置:“”message": "此项已弃用,配置默认 shell 的新推荐方法是在 `#terminal.integrated.profiles.windows#

当VSCode升级至1.57.1(2021.6.17)时,会出现警告提示:
“”message": "此项已弃用,配置默认 shell 的新推荐方法是在 `#terminal.integrated.profiles.windows#

 然后我们去官网https://code.visualstudio.com/docs/editor/integrated-terminal#_configuration会看到如下设置

 我们copy到seetings.json下面 会发现报错

 已经看到提示了改成git Bash 就行了

 有的我看到是Git-Bash我的会报错不知道为什么 反正按照他的写就完事了

 最后发现还是有坑运行终端的时候直接挂了所以最后

 "terminal.integrated.profiles.windows": {
    "Git Bash": {
      "path": "C:\Windows\System32\cmd.exe",
      "args": []
    }
  },
  "terminal.integrated.defaultProfile.windows": "Git Bash",
这么写才是最佳就没有报错了和挂终端了
右侧打赏一下 代码改变世界一块二块也是爱
原文地址:https://www.cnblogs.com/ht955/p/15005730.html