更改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 进行测试
相关推荐
A_Lonely_Cat2 天前
记一次 GitHub 幽灵协作者大清洗:强制重写 Git 历史与穿透 CDN 缓存实践
git·github
和你看星星4 天前
Git rerere:让重复冲突只解决一次
git
嘻嘻仙人8 天前
Ubuntu中 git上传自己的项目和二次上传一般流程
git·github
Patrick_Wilson8 天前
Squash Merge 的血缘陷阱:为什么删掉的代码又活了过来
前端·git·程序员
沉浸学习的匿名网友8 天前
什么是 .gitignore?为什么每个 Git 项目几乎都离不开它?
前端·git
深海鱼在掘金9 天前
Git 完全指南 —— 第3章:理解工作区、暂存区、版本库三个核心
git
江华森9 天前
Git 基础筑基:从原理到团队协作的全栈实战
git
JakeJiang9 天前
Git 必备命令指南:从日常高频到项目开发实战
git
叫我少年10 天前
Windows 中安装 git
git
深海鱼在掘金15 天前
Git 完全指南 —— 第1章:Git 概览与版本控制演进
git