AI Assistant Help

Code completion

Cloud completion powered by AI Assistant can autocomplete single lines, blocks of code, and even entire functions in real time based on the project context. The generated code is similar to how you would write code, matching your style and naming conventions.

Completion is available not only for code but also in commented lines, AI Chat, and commit messages. You can configure where you want to get the completion suggestions in settings.

Work with cloud completion

To invoke code completion suggestions:

  1. Start typing in the editor, AI Chat, or Commit Message field. The suggestions start to appear as you type.

    AI-generated code suggestion
    AI-generated code suggestion in AI Chat
    AI-generated code suggestion for commented code
    AI-generated commit message

    You can also trigger the code completion by pressing Alt+Shift+\.

  2. To apply the suggestion:

    • Press Tab to accept the entire suggestion. You can configure a different shortcut for this action.

    • Press Ctrl+Right to accept a suggestion word by word.

    • Press End to accept a suggestion line by line.

    To reject the suggestion, press Escape. Alternatively, just continue typing or change the caret position either with the arrow keys or by a mouse click.

Configure cloud completion

The cloud completion option is enabled by default. To configure the way it works, press Ctrl+Alt+S to open the settings and go to Editor | General | Inline Completion.

Code completion settings

Enable the necessary options to personalize your experience with code completion.

Item

Description

Enable cloud completion suggestions

Enable cloud-based code completion and select the Languages for which you want to receive suggestions.

Languages

Select the languages for which you want to receive suggestions. The code completion feature will be available when working in files of the corresponding types.

The All other option covers other file types and is disabled by default.

Exclude files types

This setting appears only when the All other option is selected. It allows you to specify a comma-separated list of file extensions for which code completion should not be provided. For example: pyw, pyx, pxd.

Features

Select where else you want to receive code completion suggestions:

  • Commit Messages – enable to receive suggestions in the Commit Message field.

  • AI Chat Input – enable to allow suggestions when writing a prompt in the AI Chat.

  • Code Comments – enable to receive suggestions in commented lines of code.

Completion policy

This option allows you to control how many code suggestions you receive and how strictly they are filtered for accuracy and relevance.

Select the number of suggestions you want to receive:

  • Creative mode – provides more extensive, open-ended suggestions by turning off all filters, allowing even incomplete or speculative code to encourage experimentation.

  • Balanced mode – delivers a moderate number of suggestions. Softer filters allow for more variety while still prioritizing relevance.

  • Focused mode – the default setting. Offers brief, precise suggestions by applying strict filters that exclude potentially incorrect code.

Enable code completion indicator

This option colors the caret in purple to indicate that code completion is invoked

Purple caret

Enable automatic completion on typing

When enabled, code completion suggestions are displayed automatically as you type.

When disabled, the completion suggestions are shown only when invoked manually via the Alt+Shift+\ shortcut.

Enable multi-line suggestions

Clear this checkbox to leave only single-line suggestions

Synchronize inline and popup completions

Select this option to see suggestions listed in a popup that appears in the editor while you type. This way, you can avoid shortcut conflicts.

Inline and popup completions combined

To disable cloud code completion, clear the Enable cloud completion suggestions checkbox on the same settings page or in Settings | Tools | AI Assistant.

List of supported languages and file types

This section provides a list of file types where cloud-based code completion can be invoked.

Languages and corresponding file types

Language/Type

Extension

Java

java

Kotlin

kt, kts

Python

py, ipynb

Rust

rs, rsx

Go

go

C/C++

c, h, cpp, cc, cp, hpp, h++

C#

cs

Ruby

rb, ruby, rbw, ru

RBS

rbs

ERB

erb, rhtml

PHP

php, phtml, phpt, ctp

Scala

scala, sbt

Terraform/OpenTofu

tf, hcl

XML

xml

JSON

json

YAML

yml, yaml

Properties

properties

Markdown

md, markdown, mkd, mkdn, rmd

Plain text

txt

HTML

html, htm, xhtml, xht

CSS-like

css, scss, sass, less

JavaScript/TypeScript

js, jsx, ts, tsx, es6, sjs, jsm, pac, vue

SQL

sql, ddl, db2, udf

Languages and file types covered by the All other setting

Language / Type

Extension

Python/Cython

pyw, pyx, pxd, pxi, pyde

Rusty Object Notation

ron

C++

cxx, c++, hh, hxx, ipp, tpp, inl, tcc

Visual Basic/VBScript/VBA

vb, vbs, vba, bas, frm

F#

fs, fsi, fsx

Swift

swift

PL/SQL

plsql, plb, pkb, pks, prc

R

r, rd

Shell scripts

sh, bash, zsh, ksh, bats, command, tmux

Windows Batch

bat, cmd

PowerShell

ps1, psm1, psd1

Objective-C++

mm

Make/ConTeXt

makefile, mk, mak, mkiv, mkii, mkvi

CMake

cmake

GYP

gyp

Bazel

bzl

TOML

toml

Docker

dockerfile

Build scripts (Dart, C#, Ruby, etc.)

tool, cake, builder

reStructuredText

rst

LaTeX

tex, sty, bib, dtx, ins

Templates (Ruby, Elixir, .NET, etc.)

mustache, jinja, eex, rabl, cshtml, vbhtml

Ruby DSLs

thor, rake, jbuilder, gemspec

LaTeX components

cbx, bbx, lbx

Cassandra Query Language

cql

SAP HANA XS JavaScript

xsjslib

Ruby CocoaPods specification

podspec

Change the cloud completion shortcut

You can change the default cloud completion shortcut that you use to accept suggestions.

  1. Hover over the suggestion.

  2. In the popup that appears, click and select the key that you want to use for accepting suggestions.

    To assign your own shortcut, select Custom.

    Code completion popup%

You can also change any code completion shortcuts in the Settings | Keymap anytime.

Collect AI completion logs

If you want to analyze AI completion behavior or report inconsistencies to the customer support, you need to collect logs. To do this:

  1. In the main menu, go to Navigate | Search Everywhere or press Shift twice to open the search window.

  2. Type Collect AI Completion Logs and press Enter.

  3. Click Collect Logs in the Collect Diagnostics Data of AI Completion dialog. This will start the logging process that runs for one minute.

  4. Type your code as you normally would and expect completion.

  5. After the logging process is complete, you will see a confirmation dialog pointing to the log file.

    AI Completion log file
  6. Review the log file and remove any confidential information before sending it to customer support.

01 December 2025