โ† Back to all tools

Cursor AI Cheatsheet

Keyboard shortcuts for the AI-powered code editor

๐Ÿ’ก Pro Tip

Cursor is built on VS Code, so all VS Code shortcuts still work. These are the AI-specific additions.

AI Features

Cmd+K
Edit selection with AI (inline edit)
Cmd+L
Open AI chat panel
Cmd+Shift+L
Add selection to chat context
Cmd+I
Open Composer (multi-file edit)
Cmd+Shift+I
Open Composer in new window
Tab
Accept AI suggestion
Esc
Reject AI suggestion
Cmd+โ†’
Accept next word of suggestion

Chat Context Commands

@file
Reference a specific file
@folder
Reference entire folder
@codebase
Search entire codebase
@web
Search the web
@docs
Search documentation
@git
Reference git history
@definitions
Include symbol definitions

Navigation & Editing

Cmd+P
Quick open file
Cmd+Shift+P
Command palette
Cmd+Shift+F
Search in files
Cmd+D
Select next occurrence
Cmd+Shift+K
Delete line
Alt+โ†‘/โ†“
Move line up/down
Cmd+/
Toggle comment
Cmd+B
Toggle sidebar

Terminal

Cmd+`
Toggle terminal
Cmd+Shift+`
New terminal