IntelliJIDEA 2024.1 provides support for the feature set in JDK 22, released in March 2024. This includes support for the final iteration of unnamed variables and patterns, the second preview of string templates and implicitly declared classes, and instance main methods. Additionally, this update introduces support for new statements preceding super(...) in their preview state. Learn more in this blog post.
IntelliJ IDEA 2024.1 unveils an overhauled terminal featuring both visual and functional enhancements to streamline command-line tasks. This update gives the familiar tool a fresh new look, with commands separated into distinct blocks, along with an expanded set of features, such as smooth navigation between blocks, command completion, and easy access to the command history. Learn more in this blog post.
AI Assistant has received several valuable updates, including improved test generation and cloud code completion, custom prompts for commit messages, the ability to create files from code snippets, and updated in-editor code generation. Learn more in this blog post.
Please note that in version 2024.1, AI Assistant has been unbundled and is now available as a separate plugin. This change is driven by the need to offer greater flexibility in decision-making regarding the use of AI-powered technologies, providing you with more control over your preferences and requirements in your working environments. AI Assistant still requires an active JetBrains AI subscription.
Basic IDE functionalities like code highlighting and completion now work for Java and Kotlin during project indexing, which should enhance your startup experience. Additionally, you can navigate through the code using Go to class and Go to symbol while the project is still loading.
To reduce your cognitive load while configuring new projects, we have made slight adjustments to the layout of the New Project wizard. The language list is now positioned in the upper left-hand corner, enhancing the discoverability of the most popular options.
IntelliJ IDEA 2024.1 introduces the ability to inject languages into string templates. You can do this with annotations, which automatically select the required language, or by using the Inject language or reference intention action (Alt+Enter) to manually select a language from a list. If you use the latter method, the IDE will offer to insert the language annotation for you. After performing the injection, you can call the list of intention actions again and choose to open and edit the injected fragment in a separate editor pane.
IntelliJ IDEA 2024.1 introduces the new Kotlin K2 mode, leveraging the embedded K2 Kotlin compiler for enhanced Kotlin code analysis. This update not only guarantees compatibility with upcoming Kotlin features, but also boosts the stability of code analysis, resulting in the enhanced quality and reliability of IDE features, as well as improved overall application performance. Learn more.
Starting from version 2024.1, the IDE uniformly applies the official Kotlin style guide as the default option for all projects, unless explicitly specified otherwise. If your existing project happens to use an older code style without it being explicitly configured, the IDE will automatically switch to the Kotlin coding conventions code style and provide a notification to alert you of this change. To prevent any undesired formatting alterations, we recommend familiarizing yourself with this code style migration guide.
Version 2024.1 accurately preserves static imports, ensuring they are transferred exactly as they appear in the source code. This is particularly valuable when handling nested objects, enums, and Java static imports.
To address the compatibility issue between older Play Framework versions (2.8 and below) and JDK 17, we've introduced a warning that notifies you about using incompatible versions of Play and JDK in the Play wizard.
We've introduced new icons: one for the Scala language in the New Project wizard and another for SBT in View Tool windows. Additionally, you'll notice subtle enhancements in how inlay hints are presented, with rounded corners and improved alignment. Furthermore, we've added Scala documentation to the Settings Editor CodeStyle help page. In worksheets, compilation errors are once again reported correctly in the build window when using Scala 2.13.12, and imports are no longer incorrectly marked as unused before the first code compilation. Moreover, you can now pin down the X-Ray feature, ensuring it remains active even after releasing the Ctrl key.
IntelliJ IDEA 2024.1 introduces an enhanced code review experience for both GitHub and GitLab users with the implementation of a new review mode. Integrated within the editor, this feature facilitates direct interaction between authors and reviewers. Upon checking the pull/merge request branch, review mode activates automatically and pink markers appear in the gutter, indicating that code changes are available for review. Clicking on these markers reveals a popup displaying the original code so you can quickly identify what has been changed. Gutter icons help you swiftly initiate new discussions, as well as view and hide existing ones. They also provide easy access to comments, making it easy to review, reply, and react to them. Learn more about this change in our blog post.
IntelliJ IDEA 2024.1 streamlines the code review workflow by offering a focused view of branch-related changes. For GitHub, GitLab, and Space, it is now possible to see changes in a certain branch in a separate Log tab within the Git tool window. To do so, click on the branch name in the Pull Requests tool window and pick Show in Git Log from the menu.
After successfully pushing your changes to the version control system, the IDE will now alert you with a single notification informing you about the successful push and suggesting an action to create a pull/merge request.
IntelliJ IDEA now constructs the project model by parsing the pom.xml files. This makes it possible to get a working project structure in seconds while the complete project model with all the dependencies is built in the background, allowing you to dive into the project without waiting for the full sync to finish.
The quick documentation popup now provides an easy way to download source code. Now, when you're viewing documentation for a library or dependency and need to access its source code, you can simply press F1. The updated popup will provide a direct link you can use to download the required source files, streamlining your workflow.
IntelliJ IDEA 2024.1 offers a more convenient workflow for setting breakpoints in lines containing lambda functions or return statements. Once you set a breakpoint by clicking on the gutter, the IDE automatically displays inline markers where additional breakpoints can be set. Each breakpoint can be configured independently, unlocking advanced debugging capabilities.
Version 2024.1 brings IntelliJ IDEA one step closer to achieving comprehensive test coverage. This update focuses on identifying which conditional statements in the code are not fully covered by tests. Now IntelliJ IDEA both shows which line has an uncovered condition and specifies any conditional branches or variable values that are not covered. This feature is enabled by default, and you can control it in Settings/Preferences Build, Execution, Deployment Coverage.
Code coverage settings have been moved from the Run Configuration popup to Settings/Preferences Build, Execution, Deployment Coverage. This shift eliminates the need to individually update the configuration for each test run to select a coverage runner or enable advanced features, like tracking which tests cover a specific line of code.
IntelliJ IDEA Ultimate 2024.1 brings improved Terraform support that simplifies the process of creating, managing, and scaling your infrastructure. The IDE now streamlines initialization via an explicit suggestion to run terraform init, and offers extended code completion capabilities for more than 3,900 third-party Terraform providers. Additionally, the IDE introduces support for Terraform's template language (tftpl), enabling dynamic templating with the option to seamlessly integrate it with your preferred programming language. You can find more details in our blog post.
This release introduces the long-awaited local filtering feature in the data editor. You can now swiftly filter rows by column values without sending queries to the database. This local approach only impacts the current page, though you can adjust the page size or fetch all the data if you need to extend the scope. To disable all local filters, deselect the designated Enable Local Filter icon.
IntelliJ IDEA Ultimate 2024.1 streamlines query execution by eliminating the need to manually select sessions. Instead, to attach a file, you simply need to choose the data source, rather than the session. Additionally, launching functions no longer requires selecting a session; you can now opt to run functions directly from the console or file. These changes aim to minimize the learning curve with the tool, reducing unnecessary steps and enhancing overall usability.
For plugins from JetBrains Marketplace, use the pluginId:version format, like org.intellij.plugins.markdown:231.8109.126. The version of your choice must be compatible with the version of the IDE you're building against.
The targetCompatibility property of the Java configuration can't be higher than the Java version required for running IDE in the version specified by the intellij.version or patchPluginXml.sinceBuild properties.
The kotlinJvmTarget property of the Kotlin configuration (if used) can't be higher than the Java version required for running IDE in the version specified by the intellij.version or patchPluginXml.sinceBuild properties.
The kotlinLanguageVersion property of the Kotlin configuration (if used) can't be lower than the Kotlin bundled with IDE in the version specified by the intellij.version or patchPluginXml.sinceBuild properties.
3a8082e126