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