iTranslated by AI

The content below is an AI-generated translation. This is an experimental feature, and may contain errors. View original article
💻

A Practical Guide to Using Cursor: Tips I Shared With My Manager

に公開2件

Introduction

"How should I actually use Cursor?"

Many people may not know where to start because it has so many features.

I recently had the opportunity to explain how to use Cursor to my boss, and I summarized the techniques I actually use in the field. In this article, I will introduce the features I use daily and tips for using them effectively.

Target Audience:

  • Those who are just starting to use Cursor
  • Those who have started using Cursor but haven't quite mastered it yet

[Important] Choosing the Right Model

In Cursor, you can use different AI models depending on the situation. This is a major strength of Cursor.

How to Change Models

You can change the model by clicking on the model name at the bottom of the chat input field.

Model Selection UI

Characteristics by Model

I often hear, "I don't know which model to use," but I use them based on the following criteria. Please note these are my subjective opinions.

Model Characteristics Best Used For
Auto Cost-effective / Performance△ Simple tasks (commits, code explanation, etc.)
Composer1 Speed◎ / Balance○ Used primarily. General implementation tasks.
Opus 4.5 Performance◎ / Cost△ Complex logic, large-scale changes, and critical tasks.
Gemini 3 Flash UI◎ / Speed○ Strong at UI/design, so I use it for major UI-related changes.

Summary of my usage:

General development → Composer1 (80% of the time)
Complex features → Opus 4.5
UI related → Gemini 3 Flash
Simple tasks → Auto

Trial and Error for Model Compatibility

From my experience, an implementation that fails with Opus 4.5 can sometimes easily succeed with Composer1. Also, Opus 4.5 often generates better designs than Gemini 3 Flash. The reverse is also true.

This is because each model has different training data and architecture, leading to different interpretations and outputs even for the same prompt. When something isn't working, I recommend switching to another model to try again.

Basic Usage

Agent Mode (Primary Use)

When developing with Cursor, I basically use the Agent Mode screen. Agent Mode is a screen where the AI takes the lead in development work.

How to open Agent Mode:

Shortcut: Ctrl + E (Mac: Cmd + E)

When you press the shortcut, a screen like the one below appears. The left side is the AI chat, and the right side is the code editor.

Agent Mode

Basic usage:

  1. Enter what you want to create or fix in the chat field on the left.
  2. Review the code proposed by the AI.
  3. Apply changes with "Accept," or reject them with "Reject."

The code generated by the AI is reflected directly in the files. Since you can check the diff before applying changes, you can use it with peace of mind.

How to Reference Code

Sometimes you want to pass specific code to the AI, such as "Refer to this file" or "Fix this function." There are three ways to do this.

Method Best Use Case
@ Notation When specifying files or functions
Drag & Drop When passing files directly from the explorer
Copy & Paste When passing only a part of the code

@ Notation (Recommended)

When you type @ in the chat field, a list of files and functions is displayed. For example, if you enter @src/components/Button.tsx, the contents of that file are passed to the AI.

@ Notation

Autocomplete works even if you only type part of the file name, so you don't need to remember the exact path.

Drag & Drop

Just drag a file from the explorer and drop it into the chat field. You can also pass multiple files at once.

Copy & Paste

Select code in the editor, Ctrl + C to copy, and Ctrl + V to paste into the chat field. Instead of pasting the raw text, it adds a reference to that code in the chat.

Localized Code Correction and Research (Ctrl + K)

While Agent Mode is convenient, Ctrl + K is more useful for localized tasks such as "I only want to fix this function" or "I want to know the meaning of this part."

Usage:

  1. Select the code you want to fix or research.
  2. Press Ctrl + K (Mac: Cmd + K).
  3. Enter instructions in the popup that appears.

Ctrl + K

Examples:

  • "Refactor this function."
  • "Tell me more about this logic."
  • "What is this variable?"
  • "Add TypeScript types to this."

From Scratch: "Plan → Build"

When creating a new project or feature from scratch, I recommend refining the specifications in Plan mode first rather than writing code immediately.

Why use Plan mode:

  • Writing code immediately can lead to misalignment in direction.
  • Confirming the design beforehand reduces rework.
  • You can refine specifications together with the AI.

Step 1: Design in Plan mode

Select "Plan" mode in the chat field and describe what you want to create.

Plan Mode
Once you tell it what to build, the AI will propose a design.

Review the design proposed by the AI and provide feedback if there are any points to correct.

Plan Mode
You can review and modify the design contents.

Step 2: Implement with Build

If there are no issues with the design, simply press the Build button to start the implementation. The AI will generate code according to the design.

Plan Mode
After implementation, you can immediately check it in Cursor's built-in browser.

AI Customization

Cursor allows you to customize AI behavior. There are two ways to set this up.

Type Setting Location Scope
User Rules Cursor Settings Entire PC (All projects)
Project Rules .cursor/rules/ Current project only

User Rules (Global Settings)

You can set rules you want to apply to your entire PC in Cursor Settings > Rules and Commands.

User Rules

Setting examples:

  • "Answer in English."
  • "Always add comments to code."

It is convenient to set rules you want to use across all projects.

Project Rules (Project-specific Settings)

For project-specific rules, create a .cursor/rules directory at the root of your project and place Markdown files (.mdc format) inside it. The AI automatically reads and follows the rules written here.

Example directory structure:

your-project/
├── .cursor/
│   └── rules/
│       ├── coding-style.mdc    ← Coding standards
│       └── commit-message.mdc  ← Commit message standards
├── src/
└── ...

Useful items to configure:

Item Example
Coding Standards "Function names in camelCase", "Comments in English"
Commit Standards "Follow Conventional Commits"
Libraries "Use Zustand for state management", "Use shadcn/ui for UI"
Restrictions "Do not use any", "Do not leave console.log"

I recommend using Project Rules for project-specific settings (libraries used, coding standards) and User Rules for rules you want in every project (answering in English, etc.).

Slash Commands

You can register frequently used prompts as commands, such as "Commit my changes" or "Write tests."

How to set up:

Create a Markdown file in the .cursor/commands/ directory. The file name becomes the command name.

your-project/
├── .cursor/
│   └── commands/
│       ├── commit.md      ← Callable via /commit
│       ├── code-review.md ← Callable via /code-review
│       └── write-tests.md ← Callable via /write-tests
└── ...

Usage:

Type / in the Agent input field, and the registered commands will be displayed as candidates. Just selecting one executes the prompt written in the file.

Slash Command

Example of my /commit command:

# commit

Stage all changes, enter a commit message, and commit.

- Stage all changes
- Enter a commit message
  - Follow rules in `.cursor/rules` if present
  - Otherwise follow these rules:
    - Must start with a verb (e.g., Add, Fix, Update, Change, Docs, Style, Refactor)
    - Keep messages under 50 characters
    - Use imperative mood (e.g., "Add" instead of "Added")
    - Be concrete and concise
    - Do not end with a period
    - Always use English
- Commit

Using this, you can think of an appropriate commit message and commit automatically just by typing /commit.

Other Useful Features

Built-in Browser

Cursor has a built-in browser for development. When you start a local server, you can check your web application within Cursor.

Built-in Browser

Useful ways to use it:

  1. Direct element referencing
    You can click and select elements on the browser and instruct it to "Fix this part." It saves the trouble of searching for CSS selectors.

  2. Edit design directly
    Change styles in the browser's developer tools and reflect those changes in the code via AI.

Built-in Browser

Voice Input

Sometimes talking is faster than typing on a keyboard. Cursor has a built-in voice input feature.

How to use:
Click the microphone icon on the right side of the chat input field and just talk.

Microphone icon

This is useful when writing long prompts or when your hands are busy.

MCP (Model Context Protocol)

MCP is a feature that integrates Cursor with external services. Once configured, the AI can operate external services directly.

I have only enabled the Supabase MCP.

Benefits of Supabase MCP:

  • DB creation by just saying "Create a user table."
  • Writes code while looking at the schema.

Web Agent

This is a convenient feature when you want to continue development on the go. You can give instructions to the Agent from the Cursor website.

How to access:
Login to https://cursor.com/agents and select the relevant project.

Web Agent

What you can do:

  • Give instructions to the Agent for ideas you thought of while on the move via smartphone
  • Automatic creation of independent branches
  • Create a PR from your phone → check operation (if deployment is configured)

It is convenient to be able to send instructions to the Agent as soon as you think, "Oh, I want to implement this."

Tips for Efficient Use

Here are some tips for efficient use that I have felt while actually using it.

Aim for about 10 turns per chat

Avoid long chats. If it's not resolved within about 10 turns, start a new chat.

Reason:

  • As the context (information the AI remembers) becomes long, accuracy decreases.
  • It may be pulled by older information, preventing new instructions from being reflected correctly.

If you feel "something isn't going well," try starting a new chat.

1 Chat = 1 Task

Do not handle multiple tasks in one chat, such as "Create a login feature, then create a dashboard."

When tasks are mixed, the AI is more likely to get confused. It is recommended to start a new chat once a single task is completed.

To implement multiple features in parallel

If you want to "implement feature B while implementing feature A," utilize Git Worktree.

By using Worktree, you can have multiple working directories in one repository. You can develop in parallel by opening separate Cursor windows for each directory.

Archive finished chats

As chat history piles up, it becomes difficult to find past chats. Archive chats regularly once you are done with them.

You can select "Archive" from the right-click menu in the chat list.

Summary

Here are the keys to mastering Cursor:

  1. Use different models - Composer1 for standard, Opus 4.5 for difficult tasks.
  2. Plan → Build flow - Don't implement immediately; design first.
  3. Utilize .cursor/rules - Customize for each project.
  4. Learn shortcuts - Ctrl + E (Agent), Ctrl + K (Local fixes).
  5. Limit chats to 10 turns - Start a new one if it gets too long.

Cursor has many features, but if you start by mastering the basics introduced in this article, you should be able to increase your productivity significantly.


If you found this article helpful, please give it a like 👍!

Discussion

とまとみとまとみ

普段copilot 使ってますが、内蔵ブラウザと、web agent知りませんでした

1
kekkekekke

私もGitHub Copilot使っていましたが、cursorの方が一歩先をいっている印象です。
1度試してみることをおすすめします!(copilotよりもコスパ悪いですが…)

1