【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