Cursor command deck

Cursor Command Cheatsheet and AI Coding Guide

Find the right shortcut, Agent command, context pattern, rule, or configuration path while the code is still fresh in your head.

Updated July 29, 2026 · Fast-moving features are marked “Check locally”.

quick-start.cursorrules.mdc
0102030405
Click a line to copy
152searchable entries
16focused categories
3operating-system views
2interactive builders

01 / Pick the right surface

One goal, five ways to work

Choose the smallest Cursor surface that can finish the task clearly.
01

Agent

Multi-step implementation

Searches context, edits files, and can use tools. Review plans, commands, diffs, and tests.

02

Ask

Exploration and explanation

Keeps the task conversational when you want understanding before edits.

03

Plan

Design before execution

Produces an implementation route that can be refined before code changes.

04

Inline Edit

Focused local change

Best for a selected function, block, or small transformation in the active editor.

05

Cursor Tab

In-flow completion

Predicts the next edit while you type and accepts changes incrementally.

02 / Search the command deck

Shortcuts, commands, paths, and concepts

Search descriptions, examples, categories, and keywords—then pin the cards you use most.
Show shortcut keys for

03 / Give Agent a better brief

Prompt recipe builder

Turn a vague request into a scoped task with context, constraints, and a finish line.
Ready-to-edit prompt

A useful Agent prompt states the outcome, the relevant context, what must remain unchanged, and how completion will be checked.

04 / Make conventions reusable

Project rule builder

Create a scoped MDC rule you can save under .cursor/rules/.
.cursor/rules/typescript-tests.mdc

Keep rules short, concrete, and narrowly scoped. Broad always-on rules consume attention in every eligible request.

05 / Put each file in the right place

Cursor path map

Project files travel with the repository; global files express personal defaults.
Project rules.cursor/rules/*.mdc

Version-controlled instructions with explicit scope.

Legacy rule.cursorrules

Older single-file format; migrate when practical.

Project commands.cursor/commands/*.md

Reusable slash-command workflows.

Project MCP.cursor/mcp.json

Repository-specific MCP servers.

Global MCP~/.cursor/mcp.json

Personal MCP servers across repositories.

Project CLI policy.cursor/cli.json

Repository-level Agent CLI settings and permissions.

Global CLI policy~/.cursor/cli-config.json

Personal Agent CLI defaults and permissions.

Background environment.cursor/environment.json

Remote environment lifecycle configuration.

Context exclusions.cursorignore

Files excluded from common context discovery and indexing.

06 / Control context deliberately

Context decision ladder

Start narrow and expand only when the answer lacks evidence.
  1. 1
    Selected code

    A function, error, or small diff—best for Inline Edit and precise questions.

  2. 2
    @Files

    Known implementation files, tests, or configuration needed to verify the task.

  3. 3
    @Folders

    A bounded feature area when several related files matter.

  4. 4
    Automatic search

    Let Agent discover dependencies when you know the outcome but not the file map.

  5. 5
    Web or MCP

    Use external information only when the task genuinely depends on it, and review what can leave the project.

07 / Follow a reliable route

Practical Cursor workflows

Each route keeps context, action, and verification visible.

Understand unfamiliar code

Build a reliable mental model before changing anything.

  1. Select

    Add the smallest relevant code region to Chat.

  2. Ask

    Request structure and evidence, not a broad summary.

  3. Trace

    Attach only the callers, configuration, or tests needed to verify the explanation.

  4. Plan

    Switch to planning before a cross-file change when the mode is available.

08 / Before Agent acts

Keep powerful workflows reviewable

  • Terminal commands: read generated commands before execution, especially installers, package scripts, and destructive operations.
  • Print-mode automation: non-interactive CLI requests may edit files and use tools; define narrow permissions and inspect the diff.
  • Background Agents: remote environments may have internet access and run commands automatically; minimize credentials and repository access.
  • MCP servers: inspect the provider, tools, roots, authentication, and data boundary before enabling a server.
  • Project instructions: review rules and custom commands like code because they shape future Agent behavior.
  • Context privacy: exclude secrets and irrelevant generated data, then confirm ignored files are not required for the task.
Fast local checks
Keep learning

Use this cheatsheet for discovery and recall. Before production automation, security-sensitive work, or broad repository changes, confirm the installed release’s behavior and review the resulting commands and diffs.