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

时间:2021-09-06
本文章向大家介绍【2021】]vscode git bash终端配置:terminal.integrated.profiles.windows,主要包括【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"

 使用

 

  

作者:Tinywan

本文版权归作者和博客园共有。欢迎转载,但必须保留此段声明,且在文章页面明显位置给出原文连接,否则保留追究法律责任的权利。

欢迎关注个人微信公众号,一起进步!扫描左方二维码即可

原文地址:https://www.cnblogs.com/tinywan/p/15234939.html