K2 Mode in IntelliJ IDEA 2025.1: Current State and FAQ

Starting with IntelliJ IDEA 2025.1, K2 mode, a new implementation of Kotlin support, will be enabled by default. This change is an important step in the ongoing effort to improve Kotlin support in the IDE.  While this transition brings many improvements and lays the foundation for a smoother, more reliable experience in the future, it’s […]

Apr 15, 2025 - 18:36
 0
K2 Mode in IntelliJ IDEA 2025.1: Current State and FAQ

Starting with IntelliJ IDEA 2025.1, K2 mode, a new implementation of Kotlin support, will be enabled by default. This change is an important step in the ongoing effort to improve Kotlin support in the IDE. 

While this transition brings many improvements and lays the foundation for a smoother, more reliable experience in the future, it’s important to know that K2 mode is still a work in progress. Some limitations remain, and we’re working hard to address them.

In this blog post, we’ll give you an overview of the current state of K2 mode, share our future plans, and answer the most common questions to help you understand what this change means and how it may affect your work.

How can I submit feedback or report issues?

We’re putting this section right at the start because your feedback is especially important to us. K2 mode is still evolving, and we rely on your real-world experience to help us catch corner cases, rough edges, and scenarios where things don’t work as smoothly as they should. Every report and comment helps us improve our users’ K2 mode experience.

There are several ways you can share your feedback:

Please provide as many details as possible about your specific case so we can help you effectively.

What is K2 mode, and why is it necessary?

K2 mode is the result of a long-term effort to modernize Kotlin support in IntelliJ IDEA. For years, the IDE relied on the old Kotlin compiler’s internals, which made it harder to improve performance and maintain stability as the language evolved.

K2 mode introduces a faster, more scalable rebuilt analysis engine. It also includes the Kotlin Analysis API, which provides a clear and stable way to access code information without depending on compiler internals.

K2 mode serves as a new foundation for Kotlin support in IntelliJ IDEA, making it possible to support future Kotlin language features and evolve faster, improve the stability and reliability of code analysis, and further boost the speed of Kotlin code analysis. 

For more extensive information and technical details, check out this detailed blog post!

Are there any K2 mode-only features?

Yes, some features are only available when using K2 mode. This includes all the newest Kotlin language features, which are powered by the K2 compiler, such as:

Further language features will also be supported only in K2 mode.

Some IDE features will also perform better or behave more reliably in K2 mode, and the newest IDE features are also planned to come to K2 mode only.

How does K2 mode affect performance?

K2 mode is built to improve indexing speed, code analysis, and overall IDE stability. Many users already notice faster and smoother Kotlin support, even though the current performance improvement is far from reaching its potential. 

However, depending on your project size and structure, you might still encounter performance issues in specific scenarios. We’re continuously optimizing and tuning K2 mode to address them. We see, though, that autocompletion in some cases is not as fast as we would like it to be. We’ll focus on improving this during the next few months.

Does K2 mode work in Android Studio?

K2 mode is already available to use in Android Studio. Later this year, it will be enabled by default in Android Studio, enhancing your development experience with improved performance and compatibility.

Which features are not supported yet?

While K2 mode brings many improvements, some features and integrations are still missing or incomplete. For example:

  • Some of the less frequently used inspections, quick-fixes, or intentions (those that are used less by less than 1% of users), might currently be missing. Please let us know if there is a feature you find really helpful that isn’t accessible yet – we’ll do our best to make it available as soon as possible!
  • Occasional code analysis and highlighting issues.
  • Reduced completion speed when working with some specific projects.

We plan to address these issues in upcoming releases. 

Will all IntelliJ IDEA plugins work in K2 mode?

If the IDE plugin hasn’t used the Kotlin Plugin API, then it is compatible with K2 mode. Almost every single popular plugin that needs to support K2 mode already supports it.

However, if you have non-public plugins that use the Kotlin Plugin API but don’t work with K2 mode – please check the detailed migration guide.

Will K1 mode still be supported?

You can still use K1 mode, but new Kotlin language features and the newest IDE features will be supported only in K2 mode. As this is the new standard, further code analysis optimizations will also target K2 mode. Therefore, we encourage you to use K2 mode for your development.

How to verify that K2 mode is enabled

To ensure that K2 mode is enabled, go to Preferences/Settings | Languages & Frameworks | Kotlin and check that the Enable K2 mode checkbox is ticked.

What’s next for K2 mode?

The release of K2 mode as the default in IntelliJ IDEA 2025.1 is an important milestone, but it’s far from the end of the journey. 

Our work on K2 mode will continue with a commitment to refine and improve this new architecture, address remaining limitations, and ensure a stable and reliable experience for all developers. Please send us your feedback to help us identify areas where we can improve your experience with K2 mode.

Feel free to share your thoughts and ideas with us – whether it’s on Slack, YouTrack, or by email.

Happy developing!