【2021】]vscode git bash终端配置:terminal.integrated.profiles.windows


当VSCode升级至1.57.1(2021.6.17)时,会出现警告提示:

此项已弃用,配置默认 shell 的新推荐方法是在 #terminal.integrated.profiles.windows# 中创建一个终端配置文件,并将其配置文件名称设置为 #terminal.integrated.defaultProfile.windows# 中的默认值。此操作当前将优先于新的配置文件设置,但将来会发生更改。

新版配置如下:

    "terminal.integrated.profiles.windows": {
        "Git-Bash": {
            "path": "D:\\program files\\Git\\bin\\bash.exe",
            "args": [],
            "icon": "terminal-bash"
        },
    },
    "terminal.integrated.defaultProfile.windows": "Git-Bash"

 使用

 

 

  


免责声明!

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



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