Skip to content
BENIBIX Learn

Ctrl+G Shortcut

AI⌨️ Claude CodeKeyboard Shortcuts

Also known as Ctrl+G, open prompt in editor, Ctrl+X Ctrl+E

The key that lets you write your prompt in your own editor.

Think of it like

It is like going from a small note to a big sheet of paper.

Example

Leo has a long bug report to paste and edit. He presses Ctrl+G and writes it in his editor.

Why it matters

Long prompts are easier to write in an editor you know.

Definition

Ctrl+G is the Claude Code shortcut that opens your prompt in your own text editor. You write there, save and close, and the text comes back to the prompt. Ctrl+X Ctrl+E does the same. A /config option can put Claude's last reply above your text as comments, and Claude Code strips them when you save.

Common mistake

Having no editor set and seeing the wrong one open. Set your EDITOR first.

Key takeaways

  1. 1
    Your editor. For the prompt.
  2. 2
    Save to send back. Close the file.
  3. 3
    Ctrl+X Ctrl+E too. Same job.

Learn it properly