Java and Kotlin by IntelliJ IDEA settings
- Intellij: Additional Jvm Args
Setting ID:
intellij.additionalJvmArgsSpecify additional JVM arguments to pass to the language server. For example,
-Xmx4gto increase the maximum heap size.- Intellij: Build Tool
Setting ID:
intellij.buildToolSpecify the build tool to use for the server, workspace, and folder. Set the value to
nullto allow any build tool, or to""(an empty string) to disable all build tools.- Intellij › Dev: Commands
Setting ID:
intellij.dev.commandsEnable developer-only commands.
- Intellij › Dev: Server Port
Setting ID:
intellij.dev.serverPortSpecify the port of a locally running server. Set the value to
-1to start and use the bundled server instead.- IntelliJ > Dev: Server Timeout Ms
Setting ID:
intellij.dev.serverTimeoutMsSpecify the timeout in milliseconds for connecting to an external language server.
- Intellij: JDK For Symbol Resolution
Setting ID:
intellij.jdkForSymbolResolutionBy 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.projectsIn 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, orbazel) and an absolutefile:///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.serverSpecify the level of tracing between VS Code and the language server:
off,messages, orverbose. For example, useverboseto log all protocol messages for troubleshooting.
Data Sharing
- IntelliJ: Data Sharing
Setting ID:
intellij.dataSharingSelect 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.regionSelect your region for JetBrains product terms and data processing.
Bazel
- Intellij › Bazel: Build
Setting ID:
intellij.bazel.buildSelect to build targets when running with the aspect. When disabled, Bazel runs with the
--nobuildflag and performs analysis without building targets.- Intellij › Bazel: Projectview
Setting ID:
intellij.bazel.projectviewSpecify the path to the
.bazelprojectfile, relative to the workspace folder.
Inlay hints
- JetBrains › Java › Hints: Collapse complex types
Setting ID:
jetbrains.java.hints.collapse complex typesCollapse complex types in inlay hints to shorten them.
- JetBrains › Java › Hints › Settings: Method parameter
Setting ID:
jetbrains.java.hints.settings.method parameterShow inlay hints for method parameter names.
- JetBrains › Java › Hints › Types: Call chain
Setting ID:
jetbrains.java.hints.types.call chainShow inlay hints for the types in long call chains.
- JetBrains › Java › Hints › Types: Local variable
Setting ID:
jetbrains.java.hints.types.local variableShow inlay hints for implicit local variable types.
- JetBrains › Java › Settings › Types: Lambda parameter
Setting ID:
jetbrains.java.settings.types.lambda parameterShow inlay hints for lambda parameter types.
- JetBrains › Kotlin › Hints › Call: Chains
Setting ID:
jetbrains.kotlin.hints.call.chainsShow inlay hints for function return types in call chains.
- JetBrains › Kotlin › Hints › Lambda › Receivers: Parameters
Setting ID:
jetbrains.kotlin.hints.lambda.receivers.parametersShow inlay hints for implicit receivers and parameters.
- JetBrains › Kotlin › Hints: Parameters
Setting ID:
jetbrains.kotlin.hints.parametersShow inlay hints for parameter names.
- JetBrains › Kotlin › Hints › Parameters: Compiled
Setting ID:
jetbrains.kotlin.hints.parameters.compiledShow inlay hints for compiled parameter names.
- JetBrains › Kotlin › Hints › Parameters: Excluded
Setting ID:
jetbrains.kotlin.hints.parameters.excludedShow inlay hints for excluded parameter names.
- JetBrains › Kotlin › Hints › Settings › Lambda: Return
Setting ID:
jetbrains.kotlin.hints.settings.lambda.returnShow inlay hints for return expressions.
- JetBrains › Kotlin › Hints › Settings › Types: Property
Setting ID:
jetbrains.kotlin.hints.settings.types.propertyShow inlay hints for property types.
- JetBrains › Kotlin › Hints › Settings › Types: Variable
Setting ID:
jetbrains.kotlin.hints.settings.types.variableShow inlay hints for local variable types.
- JetBrains › Kotlin › Hints › Settings › Value: Ranges
Setting ID:
jetbrains.kotlin.hints.settings.value.rangesShow inlay hints for ranges.
- JetBrains › Kotlin › Hints › Type › Function: Parameter
Setting ID:
jetbrains.kotlin.hints.type.function.parameterShow inlay hints for function parameter types.
- JetBrains › Kotlin › Hints › Type › Function: Return
Setting ID:
jetbrains.kotlin.hints.type.function.returnShow inlay hints for function return types.
- JetBrains › Kotlin › Hints › Value › Kotlin: Time
Setting ID:
jetbrains.kotlin.hints.value.kotlin.timeShow inlay hints for
kotlin.timepackage 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 |
|---|---|
| Name of the package in which the new file is created |
| Current user system login name |
| Current system date |
| Current system time |
| Current year |
| Current month |
| First three letters of the current month name, for example, Jan or Feb |
| Full name of the current month, for example, January or February |
| Current day of the month |
| First three letters of the current day name, for example, Mon or Tue |
| Full name of the current day, for example, Monday or Tuesday |
| Current hour |
| Current minute |
| Name of the current project |
- JetBrains › Templates › Java: Annotation
Setting ID:
jetbrains.templates.java.AnnotationSpecify the template applied to new Java annotations created from the Annotation template.
- JetBrains › Templates › Java: Class
Setting ID:
jetbrains.templates.java.ClassSpecify the template applied to new Java classes created from the Class template.
- JetBrains › Templates › Java: Enum
Setting ID:
jetbrains.templates.java.EnumSpecify the template applied to new Java enums created from the Enum template.
- JetBrains › Templates › Java: Exception
Setting ID:
jetbrains.templates.java.ExceptionSpecify the template applied to new Java exceptions created from the Exception template.
- JetBrains › Templates › Java: Interface
Setting ID:
jetbrains.templates.java.InterfaceSpecify the template applied to new Java interfaces created from the Interface template.
- JetBrains › Templates › Java: Record
Setting ID:
jetbrains.templates.java.RecordSpecify the template applied to new Java records created from the Record template.
- JetBrains › Templates › Kotlin: Annotation
Setting ID:
jetbrains.templates.kotlin.AnnotationSpecify the template applied to new Kotlin annotations created from the Annotation template.
- JetBrains › Templates › Kotlin: Class
Setting ID:
jetbrains.templates.kotlin.ClassSpecify the template applied to new Kotlin classes created from the Class template.
- JetBrains › Templates › Kotlin: Data Class
Setting ID:
jetbrains.templates.kotlin.Data ClassSpecify the template applied to new Kotlin data classes created from the Data Class template.
- JetBrains › Templates › Kotlin: Enum
Setting ID:
jetbrains.templates.kotlin.EnumSpecify the template applied to new Kotlin enums created from the Enum template.
- JetBrains › Templates › Kotlin: File
Setting ID:
jetbrains.templates.kotlin.FileSpecify the template applied to new Kotlin files created from the File template.
License Activation
- IntelliJ > Dev: Licensing Backend
Setting ID:
intellij.dev.licensingBackend