Vscode 设置git bash为默认终端

1.文件-》首选项-》设置-》功能-》终端

2.点击上图中的在settings.json中编辑,添加如下信息:

{
"terminal.integrated.profiles.windows": {
        "PowerShell -NoProfile": {
        "source": "PowerShell",
        "args": [
        "-NoProfile"
        ]
        },
        "Git-Bash": {
        "path": "D:\\tools\\Git\\bin\\bash.exe",
        "args": []
        }
    },
    "terminal.integrated.defaultProfile.windows": "Git Bash",

}

点击vscode 上方的终端-》新建终端-》加号旁的展开-》选择默认配置文件,选则gitbash的配置文件。

posted @   风中虹衣客  阅读(855)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· DeepSeek 开源周回顾「GitHub 热点速览」
· 物流快递公司核心技术能力-地址解析分单基础技术分享
· .NET 10首个预览版发布:重大改进与新特性概览!
· AI与.NET技术实操系列(二):开始使用ML.NET
· 单线程的Redis速度为什么快?

阅读目录(Content)

此页目录为空

点击右上角即可分享
微信分享提示