AI Tools & Chatbots

How to Use Cursor

Owned and published by DLTutu, an independent app-guide publisher. Editorial policy · Sources · Report a correction

Quick answer

The fastest way to start using Cursor is to install it from cursor.com/downloads, sign in, open a project folder, and, if you use VS Code, import your extensions, themes, settings, and keybindings. Then type a code request in Agent mode and review the proposed diff before accepting it. Start with Tab completions for inline suggestions, and use Ask mode when you only want an explanation. This gets you productive without granting unnecessary access.

Key takeaways

  • YesCursor combines the VS Code editing foundation with Tab completions and an AI Agent that can inspect, explain, plan, and edit project code.
  • YesImporting your VS Code setup is the best first configuration step if you already use VS Code, although some extensions may differ because Cursor uses Open VSX.
  • YesAsk, Plan, Agent, and Debug serve different purposes: read-only answers, approved planning, direct editing, and evidence-based debugging.
  • YesAgent requests can include precise context through @ mentions for files, folders, terminal output, past chats, Git differences, and the built-in browser.
  • YesReview diffs, approve terminal commands, use project rules, and turn on Privacy Mode before giving Cursor access to sensitive work.

Cursor is an AI code editor built on the VS Code foundation, giving developers AI-assisted editing in a familiar desktop code editor and giving beginners explanations while they learn. Use Tab for inline code suggestions, or open Agent to investigate a project, propose plans, and edit files. Agent also supports project rules, explicit context, checkpoints, and controlled terminal access.

This guide shows how to install Cursor, import your VS Code setup, choose Ask, Plan, Agent, or Debug, and delegate a small coding task safely. You will also learn to use Cursor AI features, work with the Cursor CLI included with recommended Linux packages, review changes, limit context, and protect private code.

What is Cursor and how does it work?

Cursor is a desktop code editor that combines VS Code with AI-assisted development features. Tab completion is the inline suggestion system that predicts code while you type and lets you accept a whole suggestion or individual words. Agent is the conversational coding assistant that can search a project, answer questions, plan work, edit files, and request terminal actions. The Agent panel includes four modes: Agent edits files, Ask is read-only, Plan edits only after you approve its plan, and Debug gathers runtime evidence for difficult bugs. Context is the information supplied to Agent, including files, folders, terminal output, chats, Git differences, and browser content added through @ mentions. Rules are persistent instructions stored as .mdc files, while checkpoints are recovery points that can revert file changes made after an earlier Agent message.

Before you start

  • YesA Cursor account for signing in to the desktop app
  • YesA Windows, macOS, or Linux computer with enough storage for the editor and your projects
  • YesA project folder containing the code you want to work with
  • YesA code editor background is helpful, but beginners can start with a small test project

How to use Cursor, step by step

Checked against the official pages: [1][2][3][4][5][6]

  1. Download and install Cursor

    Open cursor.com/downloads and choose the installer for your operating system. Windows and macOS provide native installers, while Linux offers apt or yum packages or an AppImage. On Linux, the apt or yum package is recommended because it includes desktop icons, automatic updates, and CLI tools. Open the downloaded installer and complete the installation before launching Cursor.

  2. Sign in and open a project

    Open Cursor and sign in with your Cursor account. From the app, choose the project folder you want to work in. Cursor then opens that folder as the current workspace. Keep important changes backed up or committed before allowing Agent to edit files.

  3. Import your VS Code setup

    Open Cursor Settings with Cmd+Shift+J on Mac or Ctrl+Shift+J on Windows and Linux. Select General, then Account, and click Import under VS Code Import. Cursor imports your extensions, themes, settings, and keybindings in one step. Some VS Code extensions may be missing or behave differently because Cursor uses the Open VSX extension registry.

  4. Use Tab completions

    Begin typing in a code file and Cursor will display an inline suggestion. Press Tab to accept the full suggestion, Cmd+Right Arrow on Mac, or Ctrl+Right Arrow on Windows and Linux to accept it word by word. Press Escape or continue typing to dismiss the suggestion. Tab is useful for short, local completions rather than asking for a large code change.

  5. Control Tab behavior

    Click the Tab status indicator in the bottom-right corner to open its controls. You can snooze Tab temporarily, disable it for all files, or disable it for specific file types. The same controls are available in Cursor Settings under Tab. Use this when repeated inline suggestions interrupt your own typing.

  6. Open Agent

    Press Cmd+I on Mac or Ctrl+I on Windows and Linux to open Agent. Type a specific request, then press Return to send it. Include the expected result and relevant constraints so Agent does not have to guess. Agent may search the project, reference files, propose edits, or request permission to run a terminal command.

  7. Choose the right mode

    Press Shift+Tab to cycle through Agent, Ask, Plan, and Debug, or use the mode picker in the Agent panel. Ask is read-only and suits questions about existing code. Agent can edit files, Plan waits for you to approve a proposed plan, and Debug gathers runtime evidence for hard bugs. Choose the narrowest mode that can complete the task.

  8. Send selected code

    Select the code you want Agent to examine and press Cmd+L or Cmd+K on Mac, or Ctrl+L or Ctrl+K on Windows and Linux. Agent opens with those lines referenced, which saves you from explaining where the code is located. The previous Cmd/Ctrl+K inline-edit workflow has been replaced by this selection-and-Agent workflow. Review the response before asking Agent to make broader edits.

  9. Add context with mentions

    Type @ in the Agent chat input to attach files and folders, such as @src/components/. You can also attach @Terminals output, @Chats from past conversations, @Commit for a Diff of Working State, @Branch for a Diff with Main, or @Browser. These mentions give Agent explicit information instead of making it search blindly. If you do not know which files matter, let Agent search on its own.

  10. Review edits and checkpoints

    Watch Agent's proposed edits in the diff view and reject any change you do not want. Click Stop if the task is heading in the wrong direction. To undo earlier work, hover over an earlier message and click Restore Checkpoint. A checkpoint can revert file changes made after that point, although you should still review the resulting files.

  11. Control terminal commands

    Terminal commands normally require your approval before they run. If you want fewer prompts, configure Run Modes using Auto-review, Allowlist, or Run Everything. Allowlist is the most restrained custom option because it limits which commands may proceed automatically. Commands that bypass the sandbox still ask for approval. Review commands that read, move, or delete project data before allowing them.

  12. Add project rules

    Open Customize in the sidebar, go to Rules, and click Add Rule, or type /create-rule in Agent chat. Set the rule to Always Apply, Apply Intelligently, Apply to Specific Files, or Apply Manually via @-mention. Project rules are saved as .mdc files in .cursor/rules, and plain instructions can also be placed in an AGENTS.md file in the project root. Rules affect Agent, Ask, Plan, and Debug, but they do not affect Tab completions.

  13. Exclude sensitive files

    Create a .cursorignore file in the project root and list the files or folders that Agent should not use. Cursor already respects .gitignore and excludes .env files, .git, and lock files by default. Keep particularly sensitive material outside the project when possible. Remember that .cursorignore blocks Agent access but does not prevent terminal commands or MCP tools from reading ignored files.

  14. Configure Privacy Mode

    Open Cursor Settings with Cmd+Shift+J on Mac or Ctrl+Shift+J on Windows and Linux. Click General and toggle Privacy Mode on. Privacy Mode keeps your code from being used for training by Cursor or model providers. Prompts and the code context required for AI responses are still sent to model providers, so treat the setting as a data-use control rather than an offline mode.

Key Cursor features explained

1

Tab completion

Tab suggests code as you type and lets you accept either the full suggestion or one word at a time. Use it for rapid inline completion when you want to stay in control of the keyboard workflow.

2

Agent modes

Agent edits files, Ask answers questions without editing, Plan waits for plan approval, and Debug uses runtime evidence. Mode selection determines how much freedom the assistant has over your project.

3

Checkpoints

A checkpoint records a recovery point that can revert file changes made after an earlier Agent message. This provides a practical safety net when a request produces unwanted edits.

4

Rules

Rules provide persistent instructions that can apply automatically, intelligently, to selected files, or only through an @-mention. Store project conventions in .mdc files so Agent, Ask, Plan, and Debug follow them consistently.

5

Context mentions

@ mentions can attach files, folders, terminal output, past chats, Git differences, and the built-in browser. They reduce guesswork when Agent needs information from a specific part of the project.

6

VS Code import

One-click import carries over VS Code extensions, themes, settings, and keybindings. It helps existing VS Code users begin with a familiar setup, though extension availability differs because Cursor uses Open VSX.

Tips & shortcuts

  • Ask for one concrete outcome at a time, such as fixing a single failing test instead of asking Agent to improve the entire project.
  • Use Ask mode when you want an explanation but do not authorize file changes; switch to Plan when the next step should be reviewed first.
  • Attach a specific directory with an @ mention when Agent keeps choosing the wrong files, but avoid including the whole repository unnecessarily.
  • Use Always Apply for non-negotiable project conventions and Apply Manually for advice that should only be used when you request it.
  • Restore Checkpoint is faster than manually reversing a sequence of edits when a long Agent task produces the wrong direction.
  • Mention terminal output with @Terminals when debugging an error instead of pasting incomplete console text into the chat.
  • Keep .cursorignore focused on files Agent does not need, and remember that it does not protect files from approved terminal commands or MCP tools.

Common mistakes to avoid

  • Starting a broad request such as “fix everything” gives Agent too much scope, so identify the failing behavior, relevant files, and expected result.
  • Using Agent when Ask would be enough can produce unnecessary edits, so switch to Ask mode for questions about code.
  • Assuming Privacy Mode prevents all code transmission is unsafe, because prompts and required code context still reach model providers.
  • Assuming .cursorignore stops every tool from reading a file is incorrect, because terminal commands and MCP tools operate outside Cursor's file-access controls.
  • Importing VS Code without checking extensions can cause confusion, so confirm that your important extensions are available through the Open VSX registry and still work as expected.

Troubleshooting

A VS Code extension is missing or behaves differently after importing.

Check whether the extension is available through Cursor's Open VSX extension registry. Extensions designed specifically for the VS Code marketplace may not work identically in Cursor. Keep essential project workflows tested in a separate editor if Cursor cannot support a required extension.

Agent is editing files that are unrelated to the request.

Stop the task, restore a checkpoint if necessary, and restart with a narrower request. Attach only the relevant file or folder with an @ mention, and add project rules that specify which paths Agent should use.

A terminal command is waiting for approval.

Read the full command and its working context before approving it. If the command is safe and repetitive, configure an Allowlist or another Run Modes option, while keeping destructive or data-moving commands under manual review.

A project rule does not change Agent's behavior.

Confirm that the file is saved in .cursor/rules with the .mdc extension; a plain .md file there is ignored. Also remember that rules affect Agent, Ask, Plan, and Debug, but not Tab completions.

The old Cmd/Ctrl+K inline-edit action no longer behaves as expected.

Select the relevant code and use Cmd+L or Cmd+K on Mac, or Ctrl+L or Ctrl+K on Windows and Linux, to send it to Agent. Review the referenced lines and the resulting diff in the Agent panel.

Privacy & safety

Privacy Mode prevents your code from being used for training by Cursor or model providers, but prompts and necessary code context are still sent to model providers. If you use your own API keys, zero-data-retention terms do not apply automatically, and your provider's privacy policy governs the data. Run Modes, command allowlists, and .cursorignore are best-effort guardrails rather than a hard security boundary; commands that bypass the sandbox request approval, and MCP tools can act outside Cursor's file controls. Privacy Mode is enabled by default for team members, and administrators can enforce it organization-wide. Download Cursor only from cursor.com/downloads, avoid lookalike domains and unofficial installers, and never place API keys or sensitive files into an untrusted chat service.

Sources

These are the developers' and platforms' own pages we checked this guide against. What an app does is taken from them; which app suits whom is our editorial judgement. Links open the official site.

  1. Quickstart cursor.com
  2. Migrate from VS Code cursor.com
  3. Tab completion cursor.com
  4. Agent mode cursor.com
  5. @ mentions and context cursor.com
  6. Run Modes cursor.com
  7. Rules | Cursor Docs cursor.com
  8. Ignore files cursor.com
  9. Privacy and data cursor.com
  10. Cursor · Pricing cursor.com

Frequently asked questions

Is Cursor free to use?

Cursor has a free plan, but it limits agent and chat requests. Paid plans are available for heavier individual use and teams, and Cursor also supports bringing your own model API keys. Check cursor.com for current pricing rather than relying on old pricing claims. The free plan is enough to learn Tab completions, use Ask mode, and try small Agent changes on a local test project.

Is Cursor safe to use for my code?

Cursor can be used safely if you review its access and keep control of your code. Privacy Mode prevents your code from being used to train Cursor or its model providers, but prompts and code context still leave your computer to power AI responses. Review diffs, approve terminal commands carefully, and use Ask mode for read-only questions. Treat any connected MCP tool as another program that may act with the permissions you grant it.

Can I use Cursor on an iPhone or Android device?

iPhone and Android are not the supported way to use Cursor as a code editor. Cursor is a desktop app for Windows, macOS, and Linux, so you need one of those computers for the complete project-editing workflow. The mobile operating systems cannot replace the verified desktop experience described in this guide. You can use Cursor on a computer and communicate with the assistant through its desktop interface.

Can I use Cursor on a computer?

Yes. Cursor is designed for Windows, macOS, and Linux computers and is installed as a desktop app. Download the official installer, sign in, and open a project folder from your computer. The AI can explain code, propose edits, and work with project files, while terminal actions still appear for approval. The guide covers desktop use; iPhone and Android do not provide the same project-editing workflow.

Can I bring my VS Code extensions into Cursor?

Yes. Cursor is built on the VS Code foundation and can import your extensions, themes, settings, and keybindings. Open Cursor Settings, select General, then Account, and click Import under VS Code Import. Some extensions may be missing or behave differently because Cursor uses the Open VSX extension registry. Import first, then reopen a project and check that your preferred tools still work as expected.

How do I make Cursor explain code without changing it?

Ask mode is the safest mode for understanding code because it is read-only and does not edit files. Open Agent with Cmd+I on Mac or Ctrl+I on Windows and Linux, choose Ask, type a specific question, and press Return. Include the relevant file with an @ mention if the answer depends on project context. Switch to Agent only when you want Cursor to propose changes.

Does Cursor's Privacy Mode mean my code stays completely private?

Privacy Mode stops your code from being used for training by Cursor or model providers, but it does not make the feature offline. Prompts and the code context needed for a response are still sent to the relevant model provider. If you use your own API keys, zero-data-retention terms do not apply automatically, and your provider's privacy policy governs that traffic. Review data handling before using confidential code.

Can Cursor edit my project files?

Yes. Agent can edit files, while Plan waits for approval of a proposed plan and Ask stays read-only. Select code and send it to Agent with Cmd+L or Cmd+K on Mac, or Ctrl+L or Ctrl+K on Windows and Linux. Review every diff and use Stop if the work goes in the wrong direction. Restore Checkpoint can revert file changes made after an earlier Agent message.

What are @ mentions in Cursor?

@ mentions give Agent explicit context instead of making it guess which project files matter. Type @ in the chat input to attach a file or folder such as @src/components/, or use @Terminals, @Chats, @Commit, @Branch, and @Browser for other context. Agent can also search on its own when you do not know the relevant files. Mention only the context the task needs, especially in private repositories.

How do I use Cursor AI for a coding task?

Open Agent with Cmd+I on Mac or Ctrl+I on Windows and Linux, type a specific request that includes the expected result and relevant constraints, and press Return. Use Ask for read-only questions, Plan when you want to approve a plan first, Agent for direct edits, and Debug for runtime evidence. Add files or terminal output with @ mentions, then review proposed diffs and terminal commands before approving changes.

How do I use Cursor with VS Code?

Cursor is built on the VS Code foundation but is installed and used as its own desktop editor. Open Cursor Settings, select General, then Account, and click Import under VS Code Import. Cursor can bring over your VS Code extensions, themes, settings, and keybindings in one step. Some extensions may be missing or behave differently because Cursor uses the Open VSX extension registry, so check your preferred tools after importing.

Spotted something out of date? Report a change

Tell us what changed. We check every report against official sources before we update a guide — nothing is published automatically.

We store what you send to review it. See our privacy policy.