aider.2——一些操作
龟速学习
文章目录
一、命令
对某个文件进行变动
/add 文件名
如果文件在子目录下,要完整路径
输入文件名称,会有默认弹出,可以按tab键选择
其他命令
命令 | 描述 |
---|---|
/add | Add files to the chat so GPT can edit them or review them in detail |
/ask | Ask questions about the code base without editing any files |
/chat-mode | Switch to a new chat mode |
/clear | Clear the chat history |
/clipboard | Add image/text from the clipboard to the chat (optionally provide a name for the image) |
/commit | Commit edits to the repo made outside the chat (commit message optional) |
/diff | Display the diff of changes since the last message |
/drop | Remove files from the chat session to free up context space |
/exit | Exit the application |
/git | Run a git command |
/help | Ask questions about aider |
/lint | Lint and fix provided files or in-chat files if none provided |
/ls | List all known files and indicate which are included in the chat session |
/map | Print out the current repository map |
/model | Switch to a new LLM |
/models | Search the list of available models |
/quit | Exit the application |
/read | Add a file to the chat that is for reference, not to be edited |
/run | Run a shell command and optionally add the output to the chat (alias: !) |
/test | Run a shell command and add the output to the chat on non-zero exit code |
/tokens | Report on the number of tokens used by the current chat context |
/undo | Undo the last git commit if it was done by aider |
/voice | Record and transcribe voice input |
/web | Scrape a webpage, convert to markdown and add to the chat |
官方示例:
/ask 这个 repo 是什么?
/help 如何使用 ollama?
默认是代码相关的,切换
/chat-mode code
其他
/chat-mode ask
/chat-mode help
还是需要有好的prompt,虽然声称只需要添加需要变动的文件,可以读取项目内所有内容,但这个功能就不那么好,还是会瞎改