Appearance
Cursor
Cursor là VS Code fork với tích hợp AI mạnh mẽ.
Setup
bash
one-toolkit init -e cursor --all --viFiles được tạo
| File | Mô tả |
|---|---|
AGENTS.md | Context rules cho AI |
.cursor/commands/*.md | Slash commands |
.cursor/rules/ | Project rules |
Sử dụng Slash Commands
- Mở Cursor chat (Cmd/Ctrl + L)
- Gõ
/để xem danh sách commands - Chọn command, ví dụ
/new-requirement
Danh sách Commands
| Command | Mô tả |
|---|---|
/new-requirement | Bắt đầu feature mới |
/execute-plan | Thực thi kế hoạch |
/code-review | Review code |
/writing-test | Viết tests |
/debug | Debug vấn đề |
/update-planning | Cập nhật kế hoạch |
/check-implementation | Kiểm tra triển khai |
/review-design | Review thiết kế |
/review-requirements | Review yêu cầu |
/capture-knowledge | Ghi lại kiến thức |
/simplify-implementation | Đơn giản hóa code |
Tips
AGENTS.md
Cursor đọc file AGENTS.md ở root để hiểu context dự án. Chỉnh sửa file này để customize behavior của AI.
Rules
Các files trong .cursor/rules/ định nghĩa coding standards. AI sẽ tuân theo khi generate code.