Toggle multiline input in Grok Build
Toggle multiline input in Grok Build
Multiline mode changes how Enter and Shift+Enter behave in the prompt. Official: Modes and Commands, Keyboard Shortcuts.
Turn it on or off
In a session, run either form:
/multiline
/ml
Or press Ctrl+M while the prompt is focused. That chord toggles multiline. With the prompt unfocused, the same chord opens the model picker instead — see Switch the active model in Grok Build.
How keys change
| Key | Usual prompt | Multiline on |
|---|---|---|
Enter |
Send | Keep editing (newline / stay in draft, per mode) |
Shift+Enter |
Newline | Send (or Alt+Enter where Shift+Enter is unsupported) |
VS Code-family terminals (VS Code, Cursor, Windsurf, Zed) use Alt+Enter for newlines. WezTerm needs enable_kitty_keyboard = true for Ctrl+Enter and Shift+Enter.
Pitfalls
Ctrl+Mon a focused prompt is multiline, not/model.- Multiline is a TUI input mode. It does not change headless
-pprompts.