Code completion is a feature of editors and development tools that predicts and suggests the variable names, functions, or syntax a developer is likely to type next. Traditionally it proposed identifiers based on a language's grammar and the symbols in a project.
In AI, the term has broadened to cover large language models that read the surrounding context and generate suggestions spanning a line, several lines, or an entire function, with GitHub Copilot as a prominent example. Code completion, which proposes snippets, is distinguished from coding agents that carry out a whole task from start to finish.