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 location
bash
// 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

Continue with Cursor

Save the full cheat sheet or work through every related task.

More AI tasks

Back to the full Cursor cheat sheet