Inline Edit (Ctrl+K) in AI
From the Cursor cheat sheet ยท Essential Shortcuts ยท verified Jul 2026
Inline Edit (Ctrl+K)
Edit code directly with AI assistance
bash
# Inline editing
Ctrl+K # Open inline edit input
Ctrl+Shift+K # Toggle input focus/Add selection
# Quick actions
Alt+Enter # Ask quick question about code
Ctrl+Shift+Enter # Perform full file edits
# Controls
Enter # Submit edit request
Ctrl+Shift+BackSpace # Cancel edit
Tab # Jump to next edit locationbash
// EXAMPLE: Refactoring with Inline Edit
1. Select function to refactor
2. Press Ctrl+K
3. Type: "Convert to async/await"
4. Press Enter
5. Review changes inline
6. Tab to jump between edits๐ก Ctrl+K is fastest for quick edits
โก Alt+Enter for instant code explanations
๐ Full file edits for comprehensive changes
๐ Tab jumps between multiple edit locations
inlineeditrefactor