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",
这么写才是最佳就没有报错了和挂终端了


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM