更改CodeBuddy的默认terminal为Git Bash

更改CodeBuddy的默认terminal为Git Bash

背景

使用Craft模式编写代码,AI经常需要自动打开terminal自主操作,默认的terminal 是prompt,环境受限制,改为Git Bash。

操作一

  1. 打开terminal
  2. 配置terminal设置
  3. 打开settings.json
  4. 编辑
json 复制代码
{
    "CodeBuddy.preferredLanguage": "zh-cn",
    "terminal.integrated.profiles.windows": {
        "Git Bash": {
            "path": "C:\\Program Files\\Git\\bin\\bash.exe",
            "source": "Git Bash"
        }
    },
    "terminal.integrated.defaultProfile.windows": "Git Bash"
}

操作二

craft模式,一句prompt

bash 复制代码
把本IDE的默认终端改成git bash,并打开新terminal 进行测试
相关推荐
自动花钱机14 小时前
Cherry-pick冲突与Git回滚
git
coderklaus19 小时前
git rebase
git
苏元19 小时前
☠️ 写错 commit = 绩效自爆,别说我没提醒你!
git
程序设计实验室19 小时前
模型文件硬塞进 Git,GitHub 直接打回原形:使用Git-LFS管理大文件
git
Dontla2 天前
脚本:git push直到成功(windows powershell命令)(Github连不上、Github断开)
git·github
CAE虚拟与现实2 天前
GitHub Desktop 和 Git 命令行工具(CLI)各有优势
git·github·github desktop
RePeaT2 天前
代码双仓库备份指南:三种简单高效的方法
git·github
coderklaus2 天前
Git GC
git
xiezhr2 天前
Git提交错了,别慌!还有后悔药
git·gitlab·github
GGGGGGGGGGGGGG.2 天前
CI/CD 全链路实践:从 Git 基础到 Jenkins + GitLab 企业级部署
运维·git·ci/cd·云原生·gitlab·jenkins