IntelliJ IDEA
 
2025.1
Get IntelliJ IDEA

Code completion

Last modified: 22 April 2025

Basic code completion helps you complete the names of classes, methods, fields, and keywords within the visibility scope.

IntelliJ IDEA analyzes the context and suggests the choices that are reachable from the current caret position. Suggestions also include Live templates. Completion is available for a non-English keyboard layout.

  • Invoking code completion for the second time shows inaccessible classes and members (these can be made public by applying an intention action).

  • When invoked for the third time in a row, completion looks for suggestions for classes and interface names in the entire project, regardless of dependencies. If the necessary class is not yet imported, it will be imported automatically.

  • Code completion is available for custom file types. However, IntelliJ IDEA does not recognize the structure of such files and suggests options regardless of whether they are appropriate in the current context.