# 编辑器与上下文

> 使用 Tab、Inline Edit 与 @ mentions，让小改动和上下文选择更直接。

- 网址：https://funcoding.ai/agents/cursor/editor/
- 核实日期：2026-10-07（命令、配置和价格以官方文档为准）
- 官方来源：[Cursor 官方文档：Tab completion](https://cursor.com/help/ai-features/tab)、[Cursor 官方文档：@ mentions and context](https://cursor.com/help/customization/context)

---
Cursor 提供不同粒度的编辑入口：Tab 预测下一步输入，Inline Edit 改选区，Agent 处理跨文件任务。先按改动范围选择入口，再加入必要上下文。

- [Tab 补全](https://funcoding.ai/agents/cursor/editor/tab/)：整段、逐词接受与跨文件跳转。
- [Inline Edit](https://funcoding.ai/agents/cursor/editor/inline-edit/)：选区修改与问答。
- [上下文提及](https://funcoding.ai/agents/cursor/editor/context/)：文件、终端、聊天、diff 与浏览器。
- [文件忽略](https://funcoding.ai/agents/cursor/editor/ignore-files/)：排除 AI 文件上下文及其工具边界。
- [搜索](https://funcoding.ai/agents/cursor/editor/search/)：Instant Grep、Explore 与多根工作区。

只想理解代码时使用[Ask](https://funcoding.ai/agents/cursor/agent/ask/)，大改动先看[Plan Mode](https://funcoding.ai/agents/cursor/agent/plan-mode/)。
