7 C
New York
Friday, March 29, 2024

JetBrains IntelliJ IDE so as to add K2 compiler mode


JetBrains’ IntelliJ IDEA 2024.1, a launch of the built-in growth atmosphere (IDE) due on April 4, will function an non-compulsory K2 compiler mode, enabling builders to make use of K2 for quicker and extra strong Kotlin code evaluation, the corporate mentioned.

With this deliberate launch, the IDE for Kotlin and Java can have two modes. The category mode, enabled by default, will use the usual K1 Kotlin compiler to research Kotlin code. The K2 mode will use the brand new K2 compiler as its code evaluation engine. The K2 mode now could be in an alpha state. The corporate made the announcement in a March 25 weblog submit.

The 2 modes have an effect on solely code evaluation. If builders wish to compile a venture to the K2 compiler, they might want to specify this in construct settings. JetBrains describes K2 as a high-performance compiler for the Kotlin language. With the K2 mode, JetBrains builders rewrote the compiler from scratch to enhance efficiency and improve the interior structure for additional growth of the Kotlin language. The K2 mode will help future language options that may solely be offered within the K2 compiler, JetBrains mentioned.

The K2 mode in IntelliJ IDEA 2024.1 helps code highlighting and completion, navigation, debugging, refactoring, and modifying options comparable to code formatting and sort hierarchy. Additionally supported are standard inspections, fast fixes, new venture wizards, wizard importing, and operating assessments and functions from IntelliJ IDEA.

Nonetheless, K2 mode in model 2024.1 doesn’t help Kotlin Multiplatform initiatives, Android initiatives, extract operate refactoring, inlay hints, or Java-to-Kotlin conversion. Additionally, third-party IntelliJ IDEA plugins that rely upon the Kotlin plugin will probably be disabled. JetBrains mentioned that help for lacking options and an easy-to-use API for third-party plugins will probably be added in upcoming releases.

The corporate promised to supply migration steerage for plugin authors quickly.

Copyright © 2024 IDG Communications, Inc.



Supply hyperlink

Related Articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest Articles