Java and Kotlin by IntelliJ IDEA Help

Coding assistance

The Java and Kotlin by IntelliJ IDEA extension analyzes your Java and Kotlin code as you type and provides coding assistance in VS Code, Cursor, or any other VS-Code-based editor. Its features are available through a familiar editor UI, such as the completion popup, lightbulb menu, and tooltips.

Code completion

Code completion suggests classes, methods, fields, keywords, and other symbols that are valid at the caret. Suggestions appear as you type.

Code completion in the VS Code editor

Live templates

Live templates let you insert common code constructs, such as loops and method declarations, from short abbreviations. Java and Kotlin by IntelliJ IDEA expands live templates through the completion popup.

To expand a code snippet, type the corresponding template abbreviation and press . Keep pressing to jump from one variable in the template to the next one. Press ⇧ ⇥ to move to the previous variable.

The editor showing the psvm live template abbreviation expanding via a completion popup into a static void main method

Inlay hints

Inlay hints add inline annotations to your code without changing the source. For a list of supported inlay hints, refer to Inlay hints.

Semantic highlighting

Semantic highlighting color identifiers are based on their resolved meaning rather than on syntax alone. This helps you tell local variables, parameters, and properties apart at a glance.

Code inspections

Java and Kotlin by IntelliJ IDEA runs code inspections on the fly. As you edit, the extension analyzes your code and highlights problems directly in the editor.

Hover over a highlighted fragment to read the description of the problem.

A tooltip with a problem description in the VS Code editor

Intention actions and quick-fixes

Intention actions suggest improvements to code that has no errors, and quick-fixes resolve detected problems. Both appear in the same list.

To open the list of actions available at the caret, click the lightbulb icon or press ⌥ ⏎, then select the action to apply.

Popup with intention actions

Imports

Java and Kotlin by IntelliJ IDEA suggests imports for unresolved references through quick-fixes. The extension also optimizes imports by removing unused ones and reordering the rest. To optimize imports in the current file, press ⌘ ⌥ O.

24 July 2026