Java and Kotlin by IntelliJ IDEA Help

Java and Kotlin by IntelliJ IDEA settings

Intellij: Additional Jvm Args

Setting ID: intellij.additionalJvmArgs

Specify additional JVM arguments to pass to the language server. For example, -Xmx4g to increase the maximum heap size.

Intellij: Build Tool

Setting ID: intellij.buildTool

Specify the build tool to use for the server, workspace, and folder. Set the value to null to allow any build tool, or to "" (an empty string) to disable all build tools.

Intellij › Dev: Commands

Setting ID: intellij.dev.commands

Enable developer-only commands.

Intellij › Dev: Server Port

Setting ID: intellij.dev.serverPort

Specify the port of a locally running server. Set the value to -1 to start and use the bundled server instead.

IntelliJ > Dev: Server Timeout Ms

Setting ID: intellij.dev.serverTimeoutMs

Specify the timeout in milliseconds for connecting to an external language server.

Intellij: JDK For Symbol Resolution

Setting ID: intellij.jdkForSymbolResolution

By default, the language server bundles JetBrains Runtime (JBR) and runs on it. Specify the path to a JDK for symbol resolution (reference navigation and highlighting) if the imported project model does not include a JDK entry.

Intellij: Projects

Setting ID: intellij.projects

In settings.json, list the projects to import when automatic detection is not enough, such as a monorepo or a directory that groups several projects. Each entry declares a project type (gradle, maven, or bazel) and an absolute file:/// path to the build file or workspace root. For more details, refer to Configure which projects to import.

Intellij › Trace: Server

Setting ID: intellij.trace.server

Specify the level of tracing between VS Code and the language server: off, messages, or verbose. For example, use verbose to log all protocol messages for troubleshooting.

Data Sharing

IntelliJ: Data Sharing

Setting ID: intellij.dataSharing

Select one of the options defining what diagnostic data the language server shares with JetBrains:

  • Full: sends anonymous usage statistics and full error reports, including exception messages and attachments.

  • Anonymous: sends anonymous usage statistics and anonymized error reports. Exception messages, user data, and attachments are removed.

  • None: does not send usage statistics or error reports.

IntelliJ: Region

Setting ID: intellij.region

Select your region for JetBrains product terms and data processing.

Bazel

Intellij › Bazel: Build

Setting ID: intellij.bazel.build

Select to build targets when running with the aspect. When disabled, Bazel runs with the --nobuild flag and performs analysis without building targets.

Intellij › Bazel: Projectview

Setting ID: intellij.bazel.projectview

Specify the path to the .bazelproject file, relative to the workspace folder.

Inlay hints

JetBrains › Java › Hints: Collapse complex types

Setting ID: jetbrains.java.hints.collapse complex types

Collapse complex types in inlay hints to shorten them.

JetBrains › Java › Hints › Settings: Method parameter

Setting ID: jetbrains.java.hints.settings.method parameter

Show inlay hints for method parameter names.

JetBrains › Java › Hints › Types: Call chain

Setting ID: jetbrains.java.hints.types.call chain

Show inlay hints for the types in long call chains.

JetBrains › Java › Hints › Types: Local variable

Setting ID: jetbrains.java.hints.types.local variable

Show inlay hints for implicit local variable types.

JetBrains › Java › Settings › Types: Lambda parameter

Setting ID: jetbrains.java.settings.types.lambda parameter

Show inlay hints for lambda parameter types.

JetBrains › Kotlin › Hints › Call: Chains

Setting ID: jetbrains.kotlin.hints.call.chains

Show inlay hints for function return types in call chains.

JetBrains › Kotlin › Hints › Lambda › Receivers: Parameters

Setting ID: jetbrains.kotlin.hints.lambda.receivers.parameters

Show inlay hints for implicit receivers and parameters.

JetBrains › Kotlin › Hints: Parameters

Setting ID: jetbrains.kotlin.hints.parameters

Show inlay hints for parameter names.

JetBrains › Kotlin › Hints › Parameters: Compiled

Setting ID: jetbrains.kotlin.hints.parameters.compiled

Show inlay hints for compiled parameter names.

JetBrains › Kotlin › Hints › Parameters: Excluded

Setting ID: jetbrains.kotlin.hints.parameters.excluded

Show inlay hints for excluded parameter names.

JetBrains › Kotlin › Hints › Settings › Lambda: Return

Setting ID: jetbrains.kotlin.hints.settings.lambda.return

Show inlay hints for return expressions.

JetBrains › Kotlin › Hints › Settings › Types: Property

Setting ID: jetbrains.kotlin.hints.settings.types.property

Show inlay hints for property types.

JetBrains › Kotlin › Hints › Settings › Types: Variable

Setting ID: jetbrains.kotlin.hints.settings.types.variable

Show inlay hints for local variable types.

JetBrains › Kotlin › Hints › Settings › Value: Ranges

Setting ID: jetbrains.kotlin.hints.settings.value.ranges

Show inlay hints for ranges.

JetBrains › Kotlin › Hints › Type › Function: Parameter

Setting ID: jetbrains.kotlin.hints.type.function.parameter

Show inlay hints for function parameter types.

JetBrains › Kotlin › Hints › Type › Function: Return

Setting ID: jetbrains.kotlin.hints.type.function.return

Show inlay hints for function return types.

JetBrains › Kotlin › Hints › Value › Kotlin: Time

Setting ID: jetbrains.kotlin.hints.value.kotlin.time

Show inlay hints for kotlin.time package warnings.

File Templates

File templates define the initial contents of newly created source files. Templates use the Apache Velocity template language and support predefined variables, custom variables, conditional expressions, and other Velocity directives. Variables are replaced with their values when a new file is created, allowing you to customize generated files to match your project's coding conventions.

The following predefined variables are available:

Variable

Description

${PACKAGE_NAME}

Name of the package in which the new file is created

${USER}

Current user system login name

${DATE}

Current system date

${TIME}

Current system time

${YEAR}

Current year

${MONTH}

Current month

${MONTH_NAME_SHORT}

First three letters of the current month name, for example, Jan or Feb

${MONTH_NAME_FULL}

Full name of the current month, for example, January or February

${DAY}

Current day of the month

${DAY_NAME_SHORT}

First three letters of the current day name, for example, Mon or Tue

${DAY_NAME_FULL}

Full name of the current day, for example, Monday or Tuesday

${HOUR}

Current hour

${MINUTE}

Current minute

${PROJECT_NAME}

Name of the current project

JetBrains › Templates › Java: Annotation

Setting ID: jetbrains.templates.java.Annotation

Specify the template applied to new Java annotations created from the Annotation template.

JetBrains › Templates › Java: Class

Setting ID: jetbrains.templates.java.Class

Specify the template applied to new Java classes created from the Class template.

JetBrains › Templates › Java: Enum

Setting ID: jetbrains.templates.java.Enum

Specify the template applied to new Java enums created from the Enum template.

JetBrains › Templates › Java: Exception

Setting ID: jetbrains.templates.java.Exception

Specify the template applied to new Java exceptions created from the Exception template.

JetBrains › Templates › Java: Interface

Setting ID: jetbrains.templates.java.Interface

Specify the template applied to new Java interfaces created from the Interface template.

JetBrains › Templates › Java: Record

Setting ID: jetbrains.templates.java.Record

Specify the template applied to new Java records created from the Record template.

JetBrains › Templates › Kotlin: Annotation

Setting ID: jetbrains.templates.kotlin.Annotation

Specify the template applied to new Kotlin annotations created from the Annotation template.

JetBrains › Templates › Kotlin: Class

Setting ID: jetbrains.templates.kotlin.Class

Specify the template applied to new Kotlin classes created from the Class template.

JetBrains › Templates › Kotlin: Data Class

Setting ID: jetbrains.templates.kotlin.Data Class

Specify the template applied to new Kotlin data classes created from the Data Class template.

JetBrains › Templates › Kotlin: Enum

Setting ID: jetbrains.templates.kotlin.Enum

Specify the template applied to new Kotlin enums created from the Enum template.

JetBrains › Templates › Kotlin: File

Setting ID: jetbrains.templates.kotlin.File

Specify the template applied to new Kotlin files created from the File template.

License Activation

IntelliJ > Dev: Licensing Backend

Setting ID: intellij.dev.licensingBackend

28 July 2026