Updated May 2026
How to use Cursor: the complete 2026 guide
TL;DR
Cursor is an AI-native fork of VS Code built around frontier models like Claude Sonnet and GPT-5. Download from cursor.com, sign in, and import your VS Code extensions. The Hobby plan is free with limited usage. Pro at $20 per month unlocks Composer, Agent mode, and unlimited completions. Power comes from four primitives: inline edit, chat, Composer, and Agent.
If you have spent the last decade in VS Code, learning how to use Cursor takes about thirty minutes. Cursor is an AI-native fork of VS Code that turns the editor into a pair-programming partner: inline edits with Cmd+K, repo-aware chat with Cmd+L, multi-file refactors with Composer, and autonomous task execution with Agent mode. This guide on how to use Cursor walks you through every feature in the order you will actually use them.
Get tools like these delivered weekly
Subscribe free →What you will learn
- → Why Cursor became the default AI IDE for serious developers
- → Installing Cursor and importing your existing VS Code workflow
- → The four primitives: inline edit, chat, Composer, and Agent
- → Choosing between Claude Sonnet, GPT-5, and other premium models
- → How to write a .cursorrules file your team will actually maintain
- → Pricing, usage limits, and how to avoid surprise bills
What Cursor is and why developers use it
Cursor is a desktop code editor built by Anysphere on top of VS Code. Visually it looks identical: same file tree, command palette, extension marketplace. The difference is what happens when you press Cmd+K, Cmd+L, or open Composer. Cursor sends your code, open files, terminal output, and chat history to a frontier model and streams the response back as inline diffs you accept or reject.
That distinction matters. GitHub Copilot bolts autocomplete onto an existing editor; Cursor was rebuilt for AI-first workflows. The model understands your full repository, edits ten files at once, and runs terminal commands. You also get access to Claude Sonnet, GPT-5, and a fast autocomplete model from one interface, so you stop juggling browser tabs. For a deeper breakdown, see our full Cursor review.
How to install and sign up for Cursor
Before learning how to use Cursor's editing features, you need it on your machine. Setup is one of the simplest among modern dev tools:
- Download. Visit cursor.com and click Download. The site auto-detects your OS and offers builds for macOS (Apple silicon and Intel), Windows, and Linux (deb, AppImage, or tarball).
- Install. Run the installer. On macOS, drag Cursor.app into Applications. On Windows, accept the installer prompts. On Linux, install the package or chmod the AppImage.
- Sign in. Launch Cursor and choose email, Google, or GitHub. GitHub is fastest because it pre-authorizes Cursor to read your repositories.
- Import VS Code settings. The first-launch wizard offers to copy your settings.json, keybindings, themes, and extensions. Click Yes unless you want a clean slate.
- Open a project. File → Open Folder, then point Cursor at any local repository. Indexing runs in the background.
That is the entire setup. No separate CLI, no API key, no local model. Cursor talks to its hosted inference layer using your account credentials.
How to use Cursor AI: first session essentials
If you only learn three keyboard shortcuts, learn these. Together they cover roughly 80 percent of what you will do in Cursor.
Tab autocomplete
Start typing. Cursor's latency-tuned autocomplete model proposes ghost text in gray. Press Tab to accept, Esc to dismiss. Unlike Copilot, Cursor sees edits you just made on adjacent lines, so it can suggest multi-line block edits that follow a rename you just performed. The most invisible productivity gain in the tool.
Cmd+K — inline edit
Select code and press Cmd+K (Ctrl+K on Windows and Linux). An input box appears above the selection. Type "convert to async/await," "add error handling for null inputs," or "extract into a hook." Cursor proposes a diff; accept with Cmd+Enter or reject with Esc. Cmd+K also works on empty space to scaffold a new function from a description.
Cmd+L — repo-aware chat
Press Cmd+L to open the chat panel. By default it sees the open file, but you can drop in @file, @folder, @docs, or @web to expand context. Ask "where is the JWT verified," "why does this test fail," or "draft a PR description for my changes." Responses include Apply buttons that land suggestions in the editor in one click.
This is the loop most users settle into during their first week of learning how to use Cursor AI: autocomplete for keystrokes you would have made anyway, Cmd+K for short focused edits, Cmd+L when you need to think out loud or search the repo with intent.
The model picker — choosing between Claude Sonnet, GPT-5, and others
Knowing how to use Cursor's model picker separates power users from everyone else. The dropdown at the bottom-right of the chat input lists the models on your plan. The lineup rotates — see docs.cursor.com for the current list — but premium consistently includes Claude Sonnet, GPT-5, and Gemini Pro plus Cursor's fast autocomplete model.
Practical guidance:
- → Claude Sonnet is the default for refactors, multi-file Composer runs, and clean, conservative code that respects existing patterns.
- → GPT-5 tends to outperform on novel algorithms, dense math, and tricky test debugging.
- → Gemini Pro is useful for long-context tasks where you feed in an entire monorepo.
- → Cursor's small model handles autocomplete by default; rarely change it.
Each premium request consumes one slot from your monthly quota. Switch models freely mid-chat — Cursor remembers the conversation, only the model changes. For benchmarks and real-world differences, see our Cursor vs Copilot vs Claude Code comparison.
Using Composer for multi-file edits
Knowing how to use Cursor's Composer is the feature that separates Cursor from every other AI editor. Open it with Cmd+I. A larger panel slides in — a chat that can edit many files at once and shows the full plan as diffs you review and accept.
The standard flow:
- Describe the change. "Add POST /api/invoices that accepts a customer ID and line items, validates with zod, writes to the invoices table, and returns the new row. Include an integration test."
- Add context. Drop @files for the route handler folder, the database schema, and an existing endpoint as a style template.
- Pick a model. Claude Sonnet is the safe default for backend work.
- Review the plan. Composer streams a list of files to create or modify with diffs inline.
- Accept selectively. Accept all, accept individual hunks, or ask Composer to revise a file before applying.
Composer is right for medium refactors and feature additions where you want to stay in the loop. It pauses on every plan and waits for you to confirm — treat it like a senior engineer who needs your sign-off.
Agent mode — letting Cursor execute multi-step tasks
Once you understand how to use Cursor's Composer, Agent mode is the next step up. It is the autonomous sibling of Composer. Toggle it from the Composer model selector or run @agent in chat. In Agent mode, Cursor can:
- → Read any file in the repo without @-mentioning it
- → Create, rename, and delete files on its own
- → Run terminal commands (per-command approval or opt-in auto-approval)
- → Run tests, read failures, and iterate until they pass
- → Search the web for documentation
A typical Agent prompt: "Migrate this project from Express 4 to Express 5. Update middleware signatures, fix error handling, run the test suite, and fix anything that breaks." Cursor proceeds turn by turn, showing each tool call. You intervene only when the model misreads the goal.
Two cautions. Agent mode burns premium model requests fast — a complex migration can use dozens of calls. And never run Agent on production credentials or untrusted repositories. Treat it like an intern with shell access.
Slash commands and key shortcuts
A meaningful chunk of how to use Cursor effectively comes down to slash commands inside chat and Composer. The most useful:
- →
@file— pull a specific file into context - →
@folder— pull an entire directory into context - →
@codebase— let Cursor search the whole indexed repo for relevant files - →
@docs— pull in framework documentation Cursor has indexed (React, Next, Tailwind, and dozens more) - →
@web— fetch a live web page or run a web search - →
@git— reference recent commits, branches, or the current diff - →
@terminal— pull in the last terminal output for debugging - →
@lint— pull in active linter or compiler errors
Commit to muscle memory: Cmd+K for inline edit, Cmd+L for chat, Cmd+I for Composer, Cmd+Shift+L to add selection to chat, Cmd+Shift+P for the command palette. Swap Cmd for Ctrl on Windows and Linux.
Configuring .cursorrules for your project
If you only learn one thing about how to use Cursor at scale, learn this. A .cursorrules file is a plain-text file at the root of your repository. Cursor reads it before every chat, edit, Composer, and Agent run, so you encode your team's standards once and stop repeating them in every prompt — the highest-leverage configuration file in the tool.
A minimal production-ready .cursorrules file:
# Project rules for Cursor
You are working on a TypeScript Next.js 15 application using
the App Router, React 19, Tailwind CSS, and Drizzle ORM with
Postgres. The codebase prefers server components by default.
Conventions:
- Use TypeScript everywhere. Never emit .js files.
- Server actions live in src/app/actions/ and are named in
kebab-case.
- Database queries go through Drizzle. Never use raw SQL
unless asked explicitly.
- All forms use react-hook-form with zod schemas.
- Tests use Vitest with @testing-library/react.
When in doubt, follow the patterns in
src/app/(dashboard)/invoices/ which is the canonical example.
Forbidden:
- No any types
- No console.log in committed code
- No new dependencies without asking first
Treat .cursorrules as living documentation. Commit it to git. Update it when you make architectural decisions. The file pulls double duty as a coding-standards doc for new team members.
For larger repos, Cursor also supports per-folder rules under .cursor/rules/ where each rule is a small markdown file with metadata, scoped to specific paths or file globs.
Prompts and workflows that work in Cursor
Once you know how to use Cursor AI's primitives, the lever that compounds is prompt quality. Strong prompts share three traits in Cursor: they describe the goal in business terms, cite the file or pattern Cursor should imitate, and specify the output shape. Templates that consistently produce useful first drafts:
The "imitate this file" pattern
"Add a settings page at src/app/(dashboard)/settings/page.tsx that follows @file:src/app/(dashboard)/profile/page.tsx. Let users update notification preferences using the existing react-hook-form pattern."
The "fix the failing test" pattern
"@terminal cart-totals.test.ts fails because the new tax calculator returns a string when the test expects a number. Look at @file:src/lib/tax.ts and either fix the function or update the test if the new shape is intentional. Tell me which you chose."
The "audit and report" pattern
"Audit @folder:src/app/api/ for routes that touch the database without a try/catch. Produce a list of file paths and the missing error-handling shape. Do not change code."
The "explain this commit" pattern
"@git Look at the last commit. Explain what changed, why, and any risks before I push. Be concise."
For more battle-tested prompts, browse our Prompt Library or the Best AI coding assistants 2026 guide.
Cursor pricing, usage limits, and billing
You cannot fully figure out how to use Cursor without understanding the bill. Pricing as of May 2026 has three plans. Verify current numbers on cursor.com/pricing before you commit.
- → Hobby — free. Two-week Pro trial then a free tier with a small monthly quota of premium model requests and limited Composer access. Good for evaluation, not for daily professional work.
- → Pro — $20 per month. Unlimited autocomplete, a generous monthly quota of premium model requests, full Composer and Agent access, and pay-as-you-go for overage.
- → Business — $40 per user per month. Everything in Pro, plus organization-wide privacy mode, single sign-on, admin dashboard, centralized billing, and model-access controls.
To watch your usage, click your avatar → Settings → Usage. The panel shows premium model requests consumed, what is left in your quota, and any pay-as-you-go spend. Set a usage cap if you are nervous about overage. Privacy mode keeps prompts and code from being stored or used for training; Pro users can opt in, while Business enforces it organization-wide.
Cursor vs the VS Code workflow you came from
Most people learning how to use Cursor are migrating from VS Code with Copilot. Here is what changes and what stays the same when you make the switch:
What stays the same. Almost everything. Same file tree, command palette, terminal, Git integration, debugger, and extensions. Your themes, keybindings, and settings.json work. The first ten minutes feel like a slightly redesigned VS Code with a chat panel on the right.
What changes. Autocomplete is dramatically smarter because Cursor sees your recent edits, not just the cursor position. Cmd+K replaces Copilot's inline-chat. Cmd+L gives you a chat that actually understands your repo. Composer and Agent have no Copilot equivalent. The model picker means you can use Claude Sonnet or GPT-5 without leaving the IDE.
What you lose. A few VS Code extensions have not been validated against Cursor's fork. Most work fine, but Microsoft's enterprise-only extensions and Live Share need testing first. Cursor's faster release cadence occasionally breaks niche workflows for a day.
For the head-to-head, see our Cursor vs Windsurf comparison and the long-form honest comparison. For the Microsoft side, our Cursor vs GitHub Copilot page covers the trade-offs.
Debugging tips when Cursor goes off-rails
Even after you know how to use Cursor well, the model will occasionally hallucinate an API or propose a refactor that breaks tests. The fix is almost always more context.
- → Pin the right files. If Cursor invents a helper, it never saw the real one. Drop @file or @folder mentions for the modules it should be using.
- → Reindex the repo. Settings → Indexing → Resync. After branch switches or rebases the index can drift; a resync fixes "cannot find that file" errors.
- → Switch models. When Claude Sonnet keeps producing the same wrong output, swap to GPT-5 or vice versa. Different model families have different blind spots.
- → Shorten the request. One prompt asking for ten changes will miss two. Break it into three Composer runs of three or four changes each.
- → Add a rule. If you keep correcting the same mistake, promote it to .cursorrules. The model stops making it within one run.
- → Read the plan, not just the diff. In Composer, the model writes a plan before producing diffs. If the plan is wrong, the diffs will be too. Correct the plan first.
- → Check the changelog. Cursor ships fast. Behavior changes are documented at cursor.com/changelog.
FAQ
Is Cursor free?
Yes, Cursor offers a free Hobby plan with limited completions and a small monthly quota of premium model requests. Most professional developers upgrade to Cursor Pro at $20 per month for unlimited completions, larger premium model quotas, Composer, and Agent mode access.
How do I install Cursor?
Go to cursor.com, click Download, and select the build for macOS, Windows, or Linux. Run the installer, sign in with email or Google or GitHub, and choose whether to import your existing VS Code settings, extensions, and keybindings during the first-launch wizard.
Does Cursor support Claude Sonnet?
Yes. Cursor supports Anthropic's Claude Sonnet line as a premium model, alongside GPT-5, Gemini, and other frontier models. You select the active model from the dropdown next to the chat input or in Cursor settings under Models.
What are .cursorrules?
.cursorrules is a plain-text file you place in the root of a project to give Cursor persistent instructions. The model reads the file before every chat, edit, Composer, and Agent run, so you can encode coding standards, framework choices, file structure rules, and forbidden patterns in one place.
Cursor Pro vs Business — which should I pick?
Choose Cursor Pro at $20 per month if you are a solo developer or freelancer. Choose Cursor Business at $40 per user per month if you are part of a team that needs centralized billing, organization-level privacy mode, SSO, and admin controls over which models employees can use.
Can I import VS Code extensions to Cursor?
Yes. Cursor is a fork of VS Code and supports the open-source VS Code extension catalog. On first launch, Cursor offers to import your existing settings, themes, keybindings, and extensions automatically. You can also install extensions later from the built-in marketplace.
How do Cursor's Agent and Composer differ?
Composer is for multi-file edits where you stay in the loop, reviewing and accepting diffs as Cursor proposes them. Agent mode runs autonomously, executing terminal commands, creating files, and iterating on tests until a goal is met. Composer is best for refactors, Agent is best for end-to-end feature work.
The bottom line on Cursor
Learning how to use Cursor is mostly learning four shortcuts and one config file: Tab for autocomplete, Cmd+K for inline edits, Cmd+L for chat, Cmd+I for Composer, and .cursorrules at the repo root. Add Agent mode for long-running grunt work, switch models when one gets stuck, and watch your usage panel.
Still deciding? Read our Cursor vs Windsurf head-to-head and the broader Best AI coding assistants 2026 roundup. Already chose Cursor? The next step is wiring up .cursorrules and adding @docs references for the frameworks you use most.