Kotlin plugin releases
Kotlin and the Kotlin plugin have distinct sets of features:
- Kotlin releases contain language, compiler, and standard library features.
- Kotlin plugin releases introduce only IDE related features. For example, code formatting and debugging tools.
This also affects the versioning of the Kotlin plugin. Releases now have the same version as the simultaneous IntelliJ IDEA release. You can learn more about new release cadence in this blog post.
This plugin release introduces the following features:
The Kotlin plugin can inline code from libraries with attached sources. That means you can inline refactor all the : also, let, run, apply, and with.
Also, this release brings refactoring improvements for lambda expressions. Now the IDE analyzes their syntax more thoroughly and formats them correctly.
Structural search and replace (SSR) actions are now available for Kotlin. The SSR feature allows you to find and replace code patterns, taking the syntax and semantics of the source code into account.
From 2020.3, the Kotlin API has the full support of files for managing code style on a directory level.
The new experimental Jetpack Compose for Desktop templates are now available in the Kotlin Project Wizard. You can create a project using the following templates:
- Multiplatform – a Multiplatform Compose project targeting the desktop JVM platform (Windows, Linux, macOS) and Android with shared code in common modules.
Read more about Jetpack Compose features in this and look through the examples of Compose applications.