/editor
Opens an external text editor to write the next chat message in.
/editor opens an external editor for composing a prompt. The docs note this is also reachable via the Ctrl-X Ctrl-E keybinding directly in the terminal. Which editor opens can be set via the editor configuration.
โ WHEN TO USE IT?
Write a multi-line prompt with precise formatting
/editor โ e.g. to cleanly format a prompt with code blocks or lists before sending it
โ WHEN NOT TO?
Sending a short, spontaneous message
Switching to an external editor isn't worth it for a short message.
Better: Type the message directly into the chat prompt, or use /paste if the text is already on the clipboard
SOURCES
- Aider Docs โ In-chat commands โ aider.chat