[ ABORT TO HUD ]
SEQ. 1
SEQ. 2
Inline Edit & Ctrl+K Magic
In-Place AI Editing
The Inline Edit panel (Ctrl+K) is the fastest way to make targeted code changes. Select code, press Ctrl+K, describe what you want, and the AI modifies it in-place with a clear diff view.
Workflow
- Select code (or place cursor on a line)
- Press
Ctrl+Kto open the inline prompt - Describe the change: "Add error handling", "Convert to async/await", "Add TypeScript types"
- Review the green/red diff showing exactly what changes
Ctrl+Enterto accept,Ctrl+Backspaceto reject
Without Selection
If you press Ctrl+K without selecting any code, Cursor generates new code at the cursor position. This is perfect for quickly scaffolding functions, adding imports, or inserting boilerplate.
Ask vs Inline Edit vs Agent
| Tool | Scope | Best For |
|---|---|---|
| Ask mode (Ctrl+L) | Read-only Q&A, explanations | Understanding code, debugging |
| Inline (Ctrl+K) | Single-file edits - editor & terminal | Quick targeted modifications |
| Agent (Ctrl+I) | Multi-file edits & autonomous tasks | Features, refactoring, agent workflows |
SYNAPSE VERIFICATION
QUERY 1 // 2
What happens when you press Ctrl+K without selecting any code?
Nothing
It opens the chat panel
Cursor generates new code at the cursor position
It deletes the current line