# Ctrl+R Shortcut

> The key that searches your past prompts by a word you remember.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** Ctrl+R, reverse history search, search past prompts

## Think of it like

It is like going back through a notebook to find a note.

## Definition

Ctrl+R is the Claude Code shortcut that searches your past prompts. Type a word, and the newest match shows in the prompt. Press Ctrl+R again for older ones. Tab or Esc keeps the match to edit, Enter sends it, and Ctrl+C gives up. In the full-screen view it opens a list you can scope to this session, this project or all projects.

## Example

Mia wrote a good test prompt last week. She presses Ctrl+R, types coverage, and it comes back.

## Why it matters

Good prompts are worth using again, and you do not have to type them twice.

## Common mistake

Pressing Enter to edit the match. Enter sends it, so press Tab to edit.

## Three principles

- **Search past prompts.** By a word.
- **Again for older.** Press Ctrl+R.
- **Tab edits, Enter sends.** Ctrl+C cancels.

## Related terms

- [Up Arrow Shortcut](https://learn.benibix.com/term/ai/up-arrow-shortcut)
- [/resume Command](https://learn.benibix.com/term/ai/resume-command)
- [tui Setting](https://learn.benibix.com/term/ai/tui-setting)

## Taught in

- [Claude Code Prompt Shortcuts](https://learn.benibix.com/learn/ai-claude-code/claude-code-prompt-shortcuts): Claude Code, 4/16

---

Source: https://learn.benibix.com/term/ai/ctrl-r-shortcut
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-18
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
