Menu
ESC

Nhập từ khóa để tìm kiếm

↑↓ Di chuyển
Enter Mở
ESC Đóng

Đang tải...

Code

Cursor

bởi Cursor

AI-first code editor fork từ VS Code — autocomplete, chat, agent mode hiểu cả codebase.

Free (limited) + Pro $20/mo + Business $40/seat Trang chủ

Tool này là gì?

Cursor là IDE (code editor) fork từ VS Code — có toàn bộ extension VS Code dùng được, nhưng tích hợp AI ở core. Nó hỗ trợ 4 mode chính:

Cho PM technical (hoặc PM muốn ship code nhỏ): Cursor cho phép viết script, internal tool, prototype mà không cần đợi engineer. Cursor là tool phổ biến nhất hiện nay cho cả senior dev và PM-có-code-skill.

Khi nào nên dùng

Khi nào KHÔNG nên dùng

Workflow tiêu biểu

flowchart LR
    A[Mở repo trong Cursor] --> B[Cursor index codebase]
    B --> C{Task gì?}
    C -->|Edit nhỏ| D[Cmd+K inline]
    C -->|Hiểu code| E[Cmd+L chat
@codebase] C -->|Multi-file change| F[Composer / Agent] D --> G[Review diff + accept] E --> H[Đọc explanation] F --> I[AI propose change
nhiều file] I --> J[Review từng diff] J --> G

Workflow PM hay dùng: mở repo, hỏi "@codebase explain flow Y" để onboard, sau đó "@docs/PRD.md viết unit test theo spec này". Trong 30 phút, PM hiểu code + ship được PR nhỏ.

Prompt mẫu

(Cmd+L Chat với context @codebase)

Trong repo này, tìm tất cả nơi xử lý payment refund.
Vẽ flow chart bằng mermaid trong response.
List mọi edge case đã handle + những edge case
có thể đã miss (vd partial refund, currency).
(Composer / Agent mode)

Task: thêm feature "Bulk export users to CSV" cho
admin panel.

Yêu cầu:
1. Endpoint POST /api/admin/users/export
2. Auth: chỉ role admin
3. Filter param: status, signup date range
4. Output: stream CSV, không load all in memory
5. Add UI button trong /admin/users page
6. Write integration test

Follow code style của repo. Đặt file đúng convention
hiện tại.

Mẹo nâng cao

Tip 1 — .cursorrules file: Tạo file .cursorrules ở root repo — viết coding convention, naming, tech stack. Cursor sẽ tuân thủ rules này mọi prompt. Đây là "system prompt" cho team.
Tip 2 — @ mentions: @file, @folder, @docs, @web, @git — context selector cực mạnh. "@docs/api.md viết client SDK" tốt hơn copy-paste doc.
Cẩn thận: Agent mode có thể chạy command trong terminal (rm, git push) nếu bật. Disable "auto-run" trong settings cho repo production. Luôn review diff trước khi accept.

Kết hợp với công cụ khác

flowchart LR
    A[v0/Lovable
prototype FE] -->|GitHub export| B[Cursor
refine production] B --> C[Claude Code
refactor lớn] C --> D[Deploy]

Cursor là "home" cho dev work daily. v0/Lovable cho prototype nhanh, Cursor cho ổn định và scale. Claude Code (CLI) cho task headless tự động.

So với alternatives

So vớiMạnh hơn ởYếu hơn ở
GitHub CopilotChat sâu hơn, agent mode, hiểu codebase tốt hơnCopilot tích hợp GitHub Enterprise sâu hơn
Claude Code (CLI)UI editor đẹp, autocomplete inline, dễ dùng cho PMClaude Code chạy headless, automate workflow tốt hơn
VS Code + CopilotChat AI sâu hơn, đa model (GPT, Claude, Gemini), agent mode nativePlugin compat cao hơn trong VS Code thuần

Tài nguyên thêm

Công cụ cùng nhóm