</> CodeAgents

Cheat Sheet

Cursor

The AI-first code editor

Learn More

Chat & AI Panel

Cmd+LOpen AI chat panel
Cmd+IOpen Agent / Composer mode
Cmd+Shift+LAdd selection to chat context
Cmd+KOpen inline edit (selected code)
Cmd+Shift+KInline edit without selection
Cmd+EnterSubmit chat message
EscapeClose chat / dismiss suggestion

Inline Completions (Tab)

TabAccept full suggestion
EscapeDismiss suggestion
Alt+]Next suggestion
Alt+[Previous suggestion
Cmd+→Accept word by word
Cmd+Shift+→Accept to end of line

Context References (@)

@codebaseReference entire codebase in chat
@filenameAttach a specific file
@folderAttach a folder and its contents
@webPull content from the web
@docsReference indexed documentation
@gitReference git history and diffs
@SymbolsReference code symbols by name
@recentReference recently edited files

Rules

.cursor/rules/Directory for all rule files (.mdc)
.cursorrulesLegacy project-root rules file
alwaysApply: trueRule applied to every request
globs: "**/*.ts"Auto-attach rule to matching files
description:Shown to model when rule is relevant
manual rulesRules used only when @referenced in chat
Cursor Settings > RulesGlobal user-level rules config

Agent Mode

Cmd+IEnter Agent (Composer) mode
Yolo modeSkip all confirmation prompts
CheckpointCreate a restore point before changes
Restore checkpointRoll back to a previous state
Max modeUnlimited requests without rate limits
Background agentsRun agents asynchronously in cloud
BugBotAuto-review PRs on GitHub

Model Selection

Model picker (top-right)Switch model in any chat
composer-1Cursor in-house agentic model (default)
claude-sonnet-4-6Anthropic Claude (latest Sonnet, 1M ctx)
claude-opus-4-7Anthropic Claude (most capable Opus)
gpt-5OpenAI GPT-5 (default OpenAI option)
gpt-5-codexOpenAI coding-tuned GPT-5
gemini-3.1-proGoogle Gemini 3.1 Pro (1M ctx)

code-agents.oday-bakkour.com · Cursor · Last verified: April 2026