/multiline-mode
Toggles multiline input mode, which swaps the behavior of Enter and Meta+Enter.
Normally Enter sends the message and Meta+Enter (or Esc+Enter) inserts a new line. /multiline-mode swaps that: Enter then inserts a new line, and Meta+Enter sends the message. Useful when pasting or writing longer, multi-line prompts. The same mode can also be enabled permanently at startup with the --multiline switch.
โ WHEN TO USE IT?
Type longer code snippets or error messages directly
/multiline-mode, then paste a multi-line stack trace without special characters like {..} and send with Meta+Enter
Want to work in multiline mode permanently
aider --multiline at startup, instead of manually toggling /multiline-mode every time
โ WHEN NOT TO?
Just writing a single short message
In multiline mode Enter no longer sends the message; you have to remember Meta+Enter too โ unnecessary friction for short prompts.
Better: Stay in the default mode and use {tag} tags or /editor for the occasional multi-line case
Unsure whether Enter currently sends or inserts a line
After switching, Enter behaves differently than usual, which easily leads to accidentally sent or stuck input.
Better: Check the active mode via /settings or the prompt behavior before important input
SOURCES
- Aider Docs โ In-chat Commands โ aider.chat