Open Prompt in Default Editor
When you need to write longer or more complex prompts, you can press Ctrl+G
to open your system's configured text editor.
Usageβ
- Press
Ctrl+G
at the Claude Code prompt - Your system's default text editor will open
- Write or edit your prompt in the editor
- Save and close the editor
- The prompt will be submitted to Claude Code
Benefitsβ
- Write multi-line prompts more comfortably
- Use your preferred editor's features (syntax highlighting, spell check, etc.)
- Edit longer instructions without dealing with terminal line editing limitations
- Paste and format complex code snippets or requirements
π‘ Make sure you have a text editor configured in your system's
EDITOR
orVISUAL
environment variable for the best experience.