Full Line code completion
Configure: Settings | Editor | General | Code Completion | Machine Learning-Assisted Completion
Enable/disable: Enable Full Line suggestions checkbox
To accept the suggestion in the editor: Tab
The Full Line code completion feature uses a locally run deep learning model to suggest entire lines of code.
note
Full Line code completion runs entirely on your local device without sending any code over the internet.
Suggestions are displayed in the editor in gray italics as you type Java, Kotlin, JavaScript/TypeScript, or CSS code. To accept the suggestion, press Tab.
The IDE formats all suggestions and adds required brackets and quotes.
Each supported language has its own set of suggested code checks. The most basic ones, like unresolved reference checks, are available for most of the languages to guarantee that the IDE doesn't suggest non-existent variables and methods.
Full Line completion supports auto-import and uses smart filtering to avoid showing suggestions that tend to be canceled explicitly or deleted right after they were accepted.
In IntelliJ IDEA, Full Line completion is available also for Python, TypeScript, PHP, Go, and Ruby. To be able to use the feature with these languages, install a corresponding language plugin as described in Install a plugin from Marketplace.
Before you start working with Full Line code completion, note that:
Full Line code completion is currently not supported in Remote Development.
Full Line code completion requires a computer with a 64-bit processor or an x86 processor that supports AVX2.
This functionality relies on the Full Line Code Completion plugin, which is bundled and enabled in IntelliJ IDEA by default. If the relevant features aren't available, make sure that you didn't disable the plugin.
note
The Full Line Code Completion plugin is not available in IntelliJ IDEA Community Edition.
Press CtrlAlt0S to open settings and then select Plugins.
Open the Installed tab, find the Full Line Code Completion plugin, and select the checkbox next to the plugin name.
Press CtrlAlt0S to open settings and select Editor | General | Code Completion.
In the Machine Learning-Assisted Completion section, select Enable Full Line suggestions and select the languages that you want to use Full Line completion with.
Models for Java and Kotlin are bundled with IntelliJ IDEA.
For some languages, for example, for CSS and JavaScript / TypeScript, you need to manually download models by clicking Download Model to enable completion.
Full Line completion runs locally using the models that are downloaded to your computer. You can choose the way with which these models are updated from the Download models drop-down list. You can update the models automatically, manually, or confirm every update in a notification.
Hover over the suggestion.
In the popup that appears, click
and select the key that you want to use for accepting suggestions, for example, 0→.
To assign your own shortcut, select Custom.
For quick access to the Full Line completion settings, click
in the popup.
tip
You can also use inline code completion in AI Assistant, which automatically completes entire functions and blocks of code based on the context of your project.
Thanks for your feedback!