更改CodeBuddy的默认terminal为Git Bash
更改CodeBuddy的默认terminal为Git Bash
背景
使用Craft模式编写代码,AI经常需要自动打开terminal自主操作,默认的terminal 是prompt,环境受限制,改为Git Bash。
操作一
- 打开terminal
- 配置terminal设置
- 打开settings.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
把本IDE的默认终端改成git bash,并打开新terminal 进行测试