Kotlin
In this section:
- Kotlin
- Creating Kotlin-JVM Project
- Creating Kotlin-JavaScript Project
- Converting a Java File to Kotlin File
- Mixing Java and Kotlin in One Project
Prerequisite
Before you start working with Kotlin, make sure that the Kotlin plugin is enabled. The plugin is bundled with IntelliJ IDEA and is activated by default. If the plugin is not activated, enable it on the Plugins page of the Settings / Preferences Dialog as described in Enabling and Disabling Plugins.
Kotlin support in IntelliJ IDEA
Kotlin support in IntelliJ IDEA includes:
- Dedicated file type, denoted with
icon.
- File and Code Templates for creating Kotlin symbols, which allows
producing the Kotlin classes
, interfaces
, enums
and objects
.
- Project types: Kotlin-JVM and Kotlin-JavaScript. To learn how to create these projects, refer to the sections Creating Kotlin-JVM Project and Creating Kotlin-JavaScript Project.
- Ability to configure Kotlin modules in a project for JVM, JavaScript, Maven or Gradle.
For details, refer to this tutorial. - Kotlin compiler configuration.
- Dedicated Kotlin, Kotlin Script and Kotlin-JavaScript run/debug configurations.
See Also
Last modified: 21 March 2017