🚀 Cursor Ultimate Command Cheatsheet 🚀

🌟 Core Commands

CommandDescriptionCategory
⌘K / Ctrl+KInline editsEditing
⌘L / Ctrl+LToggle chat modeAI Interaction
⌘I / Ctrl+IComposer modeAI Interaction
⌘Enter / Ctrl+EnterAccept editsAI Interaction
⌘Backspace / Ctrl+BackspaceReject editsAI Interaction

🧠 AI-Powered Features

Chat Mode (⌘L / Ctrl+L)

CommandDescription
⌘K ⌘S / Ctrl+K Ctrl+SOpen Keyboard Shortcuts editor
⌘Shift+L / Ctrl+Shift+LAdd selected code to Chat
⌘Shift+K / Ctrl+Shift+KAdd selected code to Edit
⌘Shift+E / Ctrl+Shift+EAI fix for linter errors
⌘Option+L / Ctrl+Alt+LView chat history

Composer Mode (⌘I / Ctrl+I)

CommandDescription
TabAccept AI suggestion
EscReject AI suggestion

@ Symbol Commands

CommandDescription
@FilesReference specific files
@FoldersReference entire folders (Chat only)
@CodeReference specific code sections
@DocsAccess third-party documentation
@GitAdd git commits, diffs, or pull requests (Chat only)
@CodebasePerform advanced codebase search
@WebSearch the web for relevant information
@ChatAdd current chat messages as context (Cmd K only)
@DefinitionsAdd nearby definitions as context (Cmd K only)
@https://your-link.comVisit a specific link before responding

🛠️ Advanced Features

Codebase Indexing

  1. Enable in Cursor Settings > Features > Codebase Indexing
  2. Use .cursorignore file to exclude files (similar to .gitignore)

Long Context Chat (Beta)

  1. Enable in Cursor Settings > Beta > Long Context Chat
  2. Toggle modes with ⌘. / Ctrl+.

Custom Documentation

  1. Add custom docs: @Docs > Add new doc
  2. Manage in Cursor Settings > Features > Docs

🎨 UI and Customization

CommandDescription
⌘K ⌘T / Ctrl+K Ctrl+TChange color theme
⌘, / Ctrl+,Open settings
⌘B / Ctrl+BToggle sidebar
⌘J / Ctrl+JToggle bottom panel

🚀 Pro Tips

  1. Use @Codebase for the most accurate codebase searches
  2. Enable “Always search the web” in settings for up-to-date information
  3. Use Ctrl/⌘ M to toggle file reading strategies in Cmd K
  4. Utilize @Git to generate commit messages from current diffs
  5. Combine multiple @ symbols for powerful context in your queries

Remember, practice makes perfect! Experiment with these commands to find the workflows that boost your productivity the most. Happy coding with Cursor! 🎉