Skip to content

Cursor: The Strongest AI Code Editor Tutorial

Cursor is currently the world's most popular AI code editor. Developed by the US startup Anysphere, it has become the hottest AI programming tool among programmers since 2024. Its core feature is like having a top-tier programmer sitting next to you; you only need to describe your needs, and it writes the code.


What is Cursor?

Built on the foundation of VS Code (Microsoft's open-source editor), Cursor inherits the interface and operational habits of VS Code while deeply integrating AI capabilities.

Core Features

FeatureDescription
ChatConverse directly in natural language; AI understands your needs and modifies/generates code.
Tab CompletionType a few characters, and AI predicts what you want to write next; press Tab to accept.
ComposerCreate or modify multiple files at once and generate entire projects.
@ReferencesReference files, documentation, webpages, and code blocks for full context.
RulesInject permanent memory into AI to help it understand your projects and preferences ← This is where the Mbbrowser package comes in!

Download and Installation

Step 1: Download Cursor

  1. Open your browser and visit https://cursor.sh (official website).
  2. Click the large button on the homepage: "Download for Windows".
  3. After the download is complete, you will get a CursorSetup.exe installer, approximately 200MB.

NOTE

Cursor supports Windows, macOS, and Linux. Windows users download .exe; macOS users download .dmg.

Step 2: Installation

  1. Double-click CursorSetup.exe to run the installer.
  2. Click "I Agree" on the agreement page.
  3. Choose the installation directory (default C drive is fine) and click "Install".
  4. Wait for the installation to finish, then click "Finish" to launch Cursor automatically.

Step 3: Account Registration

When you launch Cursor for the first time, it will ask you to register or log in:

  1. Click "Sign Up" to create a new account.
  2. Enter your email address.
  3. Find the verification email in your inbox and click the link.
  4. Set a password to complete registration.
  5. Return to Cursor and log in.

Pricing

PlanPriceTarget Audience
FreePermanently FreeLight usage; limited AI chat requests per month.
Pro$20/monthRecommended! Unlimited AI usage with the latest and strongest models.
Business$40/user/monthTeam collaboration with centralized account management.

TIP

Advice for Mbbrowser users: If you just want AI to help you write scripts, the Free plan is completely sufficient—it provides enough AI interactions per month to generate all the scripts you need. Upgrade to Pro if you find it indispensable.


Getting Started with Cursor

Open Your Workspace

  1. After starting Cursor, click File → Open Folder in the menu bar.
  2. Select the folder where you plan to store your Mbbrowser scripts (e.g., D:\mbbrowser-scripts).
  3. Click "Select Folder".

Three Ways to Talk to AI

1. Chat Sidebar (Most Common)

Press Ctrl + L to open the AI chat sidebar.

Type your requirement in natural language:

Help me write a Python script using Mbbrowser to open the environment with Session_ID "abc123", access https://example.com, and save a screenshot to screenshot.png.

Press Enter, and AI will immediately begin generating the code on the right.

Press Ctrl + Shift + I to open the Composer panel.

Composer is ideal for generating entire projects (multiple files):

Help me create a complete Mbbrowser batch login project including:
1. config.py - store ApiServer address and Session_ID list
2. utils.py - encapsulate general functions for Mbbrowser APIServer
3. main.py - main program to log in to 10 accounts concurrently and take screenshots upon success

Using Playwright Python, the Mbbrowser APIServer address is http://127.0.0.1:8186

3. Inline Edit (For modifying existing code)

Select a block of code in a file, press Ctrl + K, and enter your modification request:

Change this code to support multi-threading, with each environment running in an independent thread.

AI will modify the selected code block directly.


Loading the Mbbrowser Rules Package (Crucial!)

This is the core configuration that makes AI truly "understand Mbbrowser."

What are Rules?

Rules are Cursor's memory function. By writing the Mbbrowser APIServer documentation into Rules, AI will automatically follow all Mbbrowser interface specifications every time you chat, without needing repeated explanations.

How to Configure Rules

Method 1: Project-level Rules (Recommended)

Create a file named .cursor/rules/mbbrowser.mdc in your project's root directory, then paste the Mbbrowser knowledge package content into it.

TIP

For the complete content of the Mbbrowser Rules package, refer to the MBBrowser Rules Package chapter. Just copy and paste it!

Method 2: Global Rules (Applies to all projects)

  1. Open Cursor, click the gear icon in the top right → Settings.
  2. Find Rules for AI on the left.
  3. Paste the Mbbrowser knowledge package content into the text field.
  4. Click Save.

Supported AI Models (Latest as of Feb 2026)

Cursor has the most extensive model ecosystem, covering almost all mainstream cutting-edge AI providers.

ModelProviderRecommendationBest For
Claude Sonnet 4.6 / Opus 4.6Anthropic⭐⭐⭐⭐⭐ Most PopularBest all-around coding performance; rigorous logic, top-tier refactoring/complex project understanding. The default choice.
GPT-5.2 / GPT-5.2 Codex HighOpenAI⭐⭐⭐⭐⭐High speed, excellent generation quality; widely used in Agent mode and multi-file editing.
Gemini 3 ProGoogle⭐⭐⭐⭐Extremely long context (1M+ tokens); clear advantage when handling massive codebases.
Cursor Composer 1.5Cursor⭐⭐⭐⭐Optimized specifically for coding; extremely fast for rapid iteration.
Grok (Latest)xAI⭐⭐⭐Alternative option.
GPT-4.1 SeriesOpenAI⭐⭐⭐Light tasks, fast replies.

TIP

For writing Mbbrowser automation scripts, prioritize Claude Sonnet 4.6. It is the "mainstay model" for Cursor users in 2026—performing most stably in real-world scenarios like refactoring, debugging, and multi-file planning. Many use Composer 1.5 or GPT-5.2 as supplements for speed and cost-effectiveness.


TIP

Installed Cursor? Next step: MBBrowser Rules Package to make AI an Mbbrowser expert instantly!