Cursor Cheatsheet
Here’s a Cursor AI-specific cheat sheet, incorporating the shortcuts from the screenshots you uploaded as well as additional AI functionalities based on the references and features of Cursor:
AI Chat & Interaction Shortcuts
Shortcut |
Function |
Ctrl/⌘ + L |
Open AI chat window and focus on chat |
Ctrl/⌘ + Alt/Option + L |
Open chat history |
Ctrl/⌘ + Shift + J |
Open Cursor-specific settings panel |
Ctrl/⌘ + Shift + P |
Open command palette (access VSCode commands as well) |
Ctrl/⌘ + K |
Open code generation or editing prompt |
Ctrl/⌘ + / |
Switch between AI models in chat |
Ctrl/⌘ + . |
Toggle chat modes (between conversational and code input) |
Ctrl/⌘ + Enter |
Index codebase for relevant code snippets in chat |
Alt/Option + Enter |
Quick answer mode in prompt bar |
Ctrl/⌘ + Shift + E |
AI-powered lint error fix |
Ctrl/⌘ + Enter |
Run generated terminal commands immediately |
Tab & Code Suggestions
Shortcut |
Function |
Tab |
Accept AI code suggestion |
Esc |
Reject AI code suggestion |
Ctrl/⌘ + → |
Accept part of the AI suggestion in the code |
Code Application & Edits
Shortcut |
Function |
Ctrl/⌘ + Enter |
Apply the generated code block suggestions |
Ctrl/⌘ + Backspace |
Reject applied code block changes |
Key Features of Cursor AI
- Cursor Chat:
- Invoke the AI with Ctrl/⌘ + L. You can ask the AI questions related to your codebase or reference specific parts using @. The AI answers based on code context.
- Tab Autocomplete:
- Cursor predicts your next code changes and allows multi-line completions. Press Tab to accept the AI’s suggestion.
- Cmd/Ctrl + K Prompt Bar:
- Opens the inline prompt bar where you can type natural language prompts to generate or edit code. Cursor also supports terminal command generation via the same interface.
- Cross-File Edits:
- Edits applied by the AI can affect other files intelligently when functions or classes are updated, allowing for project-wide changes.
- Instant Apply:
- Apply AI-suggested changes directly to your codebase by clicking the action button that appears in the chat window.
These shortcuts and functionalities should help you work smoothly with AI in Cursor, making code generation, refactoring, and error fixing more efficient(
Cursor)(Cursor)(Cursor 101)(Learn R, Python & Data Science Online)(Lite Code AI).