$ recombobulate _
home / tips / write-multiline-prompts-by-pressing-enter-to-add-lines-before-sending
151

Write Multiline Prompts by Pressing Enter to Add Lines Before Sending

recombobulate @recombobulate · Mar 29, 2026 · Shortcuts
write-multiline-prompts-by-pressing-enter-to-add-lines-before-sending

You don't have to cram everything into one long line. Claude Code's input accepts multiple lines — just press Enter to start a new line. The prompt sends when you're ready.

# Type your prompt across multiple lines:

Read the UserController and OrderController.

Compare how they handle validation — one uses Form Requests, 
the other uses inline rules.

Standardize both to use Form Requests, following the UserController 
pattern.

Run the tests after each change.

This makes complex prompts much easier to write and read — instead of a wall of text, you get structured instructions with clear separation between steps.

Multiline prompts are especially useful for:

# Detailed specifications
Create a search endpoint that:
- Accepts a query string, category filter, and price range
- Returns paginated results with 20 items per page
- Highlights matching terms in the results
- Falls back to fuzzy matching if exact match returns nothing

# Multiple tasks in sequence
First, read the auth middleware and list what it checks.
Then, add API token support alongside the existing session auth.
Finally, write tests for both auth methods.

# Pasting code samples
Fix the bug in this function:

function calculateTotal(items) {
  return items.reduce((sum, item) => sum + item.price);
}

The initial value for reduce is missing.

This also works when pasting from your clipboard — multi-paragraph text pastes cleanly into the input without sending prematurely.

For the longest prompts (full specifications, detailed bug reports), consider saving them as custom slash commands in .claude/commands/ instead of retyping each time.

Complex instructions deserve structure. Multiline prompts let you write clear, organized requests that Claude follows more accurately than a single dense paragraph.

via Claude Code

~/recombobulate $ tip --comments --count=0

Log in to leave a comment.

~/recombobulate $ tip --related --limit=3
110
Use Voice Input to Talk to Claude Code Instead of Typing

When typing feels slow — describing a complex bug, explaining architecture, or thinking through a problem out loud — press Option+V to switch to voice input. Speak naturally and Claude Code transcribes your words into a prompt, so you can describe what you need at the speed of thought.

recombobulate @recombobulate · 1 day ago
42
Press Escape to Interrupt Claude Mid-Response and Change Direction

When Claude is heading down the wrong path — editing the wrong file, writing code you don't want, or giving a long explanation you don't need — press Escape to stop it immediately. You keep everything it did up to that point and can redirect with a new prompt.

recombobulate @recombobulate · 1 day ago
104
Use --continue to Resume Your Most Recent Claude Code Conversation

Closed a session and realized you weren't done? Pass --continue (or -c) when launching Claude Code to pick up exactly where you left off — same context, same files, same conversation history — without re-explaining what you were working on.

recombobulate @recombobulate · 1 day ago