Cursor essentials: when to use Tab, Chat and Agent
How the three modes divide labor, @-context tricks, and the traps beginners hit.
Three modes, three jobs
Tab autocompletes as you type; Chat answers and applies diffs on selected code; Agent takes a task and edits across files, runs commands and fixes tests. Use Tab/Chat for small edits, Agent for chunky tasks.
Context and pitfalls
Feed context explicitly with @file/@folder/@docs. Commit before big changes and review every diff. Put conventions in project rules so they persist.
中文
Cursor 使用入门:Tab、Chat、Agent 三种模式怎么用
三种模式的分工、@ 引用上下文的技巧与新手最容易踩的坑。
三种模式分工
Tab 补全管"顺手写":写到一半自动接下文;Chat 管"问与改":圈选代码提问、生成 diff 应用;Agent 管"整活":描述需求让它跨文件改代码、跑命令、修测试。小改动用 Tab/Chat,成块任务再上 Agent。
上下文与避坑
用 @文件/@文件夹/@文档 精确喂上下文,别指望它"自己全知道";大改动前先提交 git,AI 的 diff 逐条审查再接受;规范类要求写进项目规则文件,一次设置长期生效。
Keep reading / 继续阅读
- Cursor vs Windsurf: which AI coding editor should beginners choose? · Cursor 和 Windsurf 哪个更适合新手?AI 编程工具选择指南
- GitHub Copilot vs Cursor: different answers for teams and individuals · GitHub Copilot 和 Cursor 怎么选?团队与个人的不同答案
- How to use Kimi K3: web, API and the hardware you’d need locally · Kimi K3 怎么用?网页版、API 与本地部署硬件要求