跳到主要内容Skip to main content

代码补全Code Completion

Code Completion

  • AI 编程AI coding
  • 第三段 · 用深Stage 3 · Going Deeper
  • 引用核验 2026-11-09refs checked 2026-11-09
解决什么问题What problem it solves

在编辑器里根据上下文自动补出接下来的代码。Complete the following code automatically in the editor, based on context.

这是什么What it is

根据光标位置和已有代码推测并插入后续代码的功能。

Inferring and inserting the code that follows, from the cursor position and what is already written.

为什么需要知道Why it matters

这是 AI 编程工具最早也最基础的能力。所有 IDE 类工具都从它开始。The earliest and most basic AI coding capability — every IDE-class tool started here.

别用错Common misuse

补全不是代码审查:它只按上下文续写,不保证跨文件正确;大改仍要 diff、测试和版本控制。Completion is not review: it writes from context and does not guarantee cross-file correctness. For large changes, still diff, test and keep version control.

出处Sources
  • 8 份 IDE 对照8 IDE tools compared ↗
用这个术语做任务Use this term in a task

别停在定义:去任务手册看按什么顺序做、验收什么;或者按你手头的任务,筛 3 个工具候选。Don’t stop at the definition: use the task handbook for the order and checks, or filter three tool candidates for the job at hand.

任务手册 →Task handbooks → · 按任务筛 3 个候选 →Filter three candidates →