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+Gat 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
Plan Mode Prompts
You can also use Ctrl+G when responding to plan mode prompts! This is especially useful for refining complex implementation plans or adding detailed requirements before Claude starts coding.
π‘ Make sure you have a text editor configured in your system's
EDITORorVISUALenvironment variable for the best experience.