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
| Feature | Description |
|---|---|
| Chat | Converse directly in natural language; AI understands your needs and modifies/generates code. |
| Tab Completion | Type a few characters, and AI predicts what you want to write next; press Tab to accept. |
| Composer | Create or modify multiple files at once and generate entire projects. |
| @References | Reference files, documentation, webpages, and code blocks for full context. |
| Rules | Inject 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
- Open your browser and visit https://cursor.sh (official website).
- Click the large button on the homepage: "Download for Windows".
- After the download is complete, you will get a
CursorSetup.exeinstaller, approximately 200MB.
NOTE
Cursor supports Windows, macOS, and Linux. Windows users download .exe; macOS users download .dmg.
Step 2: Installation
- Double-click
CursorSetup.exeto run the installer. - Click "I Agree" on the agreement page.
- Choose the installation directory (default C drive is fine) and click "Install".
- 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:
- Click "Sign Up" to create a new account.
- Enter your email address.
- Find the verification email in your inbox and click the link.
- Set a password to complete registration.
- Return to Cursor and log in.
Pricing
| Plan | Price | Target Audience |
|---|---|---|
| Free | Permanently Free | Light usage; limited AI chat requests per month. |
| Pro | $20/month | Recommended! Unlimited AI usage with the latest and strongest models. |
| Business | $40/user/month | Team 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
- After starting Cursor, click File → Open Folder in the menu bar.
- Select the folder where you plan to store your Mbbrowser scripts (e.g.,
D:\mbbrowser-scripts). - 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.
2. Composer (Recommended for complete scripts)
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:81863. 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)
- Open Cursor, click the gear icon in the top right → Settings.
- Find Rules for AI on the left.
- Paste the Mbbrowser knowledge package content into the text field.
- 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.
| Model | Provider | Recommendation | Best For |
|---|---|---|---|
| Claude Sonnet 4.6 / Opus 4.6 | Anthropic | ⭐⭐⭐⭐⭐ Most Popular | Best all-around coding performance; rigorous logic, top-tier refactoring/complex project understanding. The default choice. |
| GPT-5.2 / GPT-5.2 Codex High | OpenAI | ⭐⭐⭐⭐⭐ | High speed, excellent generation quality; widely used in Agent mode and multi-file editing. |
| Gemini 3 Pro | ⭐⭐⭐⭐ | Extremely long context (1M+ tokens); clear advantage when handling massive codebases. | |
| Cursor Composer 1.5 | Cursor | ⭐⭐⭐⭐ | Optimized specifically for coding; extremely fast for rapid iteration. |
| Grok (Latest) | xAI | ⭐⭐⭐ | Alternative option. |
| GPT-4.1 Series | OpenAI | ⭐⭐⭐ | 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!
