Claude Code for beginners: stash a draft with Ctrl+S

You have started writing a longer instruction in Claude Code when you think of a question that needs answering first. With Ctrl+S, you can set aside the unsent draft, use the prompt input for something else, then bring your text back.

This micro-guide follows the Claude Code documentation. The images are illustrations.

Stash and restore your draft

You need Claude Code and an open session. Anthropic's setup guide explains how to get started.

  1. Focus the normal prompt input containing your unsent draft. Use plain text for this exercise.
  2. Press Ctrl+S. Claude Code stashes the text and clears the input. You can now type and send your intervening question.
  3. With the prompt input empty, press Ctrl+S again to restore the draft.
  4. Review the text and adjust it based on the answer to your question before sending it.

The documentation says restoration includes text, cursor position, pasted content and input mode. If you stash a shell command beginning with !, it returns in shell mode. Check the input mode as well as the text.

Source: Claude Code: interactive mode.

The same shortcut has different jobs

In the fullscreen history-search dialog, Ctrl+S cycles the search scope. To stash a draft, focus the normal prompt input. Shortcuts can also vary by platform and terminal.

Use this feature as a temporary place for text while you work. Save instructions you need to keep in a file. To restore code or conversation instead, see our /rewind guide.

The Forge newsletter

Get new articles in your inbox

Pick the topics you care about. No noise, at most one email a week.

Get new articles in your inbox

We follow GDPR. Unsubscribe anytime.