Early Access Program

IntelliJ IDEA 2024.1 EAP 7: Full Line Code Completion, Support for OpenRewrite, and More

IntelliJ IDEA 2024.1 EAP 7 is now available, providing a sneak peek into some exciting new features planned for the next major release. Notable updates include full line code completion, new Java inspections, and support for OpenRewrite and WireMock. Additionally, this new build introduces enhancements for version control systems integration, along with a fresh set of product icons. 

You can download the new version from our website, update directly from the IDE or via the free Toolbox App, or use snaps for Ubuntu.

Download IntelliJ IDEA 2024.1 EAP #7

Discover more about the latest features unveiled in the ongoing Early Access Program by exploring the 2024.1 EAP blog posts. Now, let’s take a look at what’s been added this week! 

Java

Full line code completion 

This IntelliJ IDEA 2024.1 EAP comes with full line code completion for Java that is powered by an advanced deep learning model seamlessly integrated within the IDE. This functionality enhances coding efficiency by predicting and suggesting entire lines of code based on contextual analysis. It runs entirely on your local device, ensuring your data remains secure without any need for external server communication.

You can control this feature and select the languages you’d like to get full line suggestions for in Settings/Preferences | Editor | General | Code Completion | Machine Learning-Assisted Completion.

New inspections and quick-fixes

We’ve implemented new inspections and quick-fixes for Java to help keep your code neat and error-free. The IDE now detects bitwise operations that can be replaced with a call to the Long.hashCode() or Double.hashCode() methods for improved readability.

There’s a new quick-fix that simplifies switching between implicit and explicit class declarations, depending on the specific needs of your codebase.

IntelliJ IDEA now suggests using existing static methods when it finds code fragments that match them exactly. This feature provides a simpler alternative to the Extract duplicate functionality, making it easier to reuse code and maintain clarity without introducing additional APIs.

In addition, the IDE now detects and reports unreachable code that will never be executed.

Enhanced user experience with multi-release JARs

This build introduces an enhanced user experience with multi-release JAR libraries. When you use a class existing in different versions, the Go to declaration feature now selects the proper version from the JAR based on your current module’s language level. 

Moreover, the Go to class feature offers extra information about the version of the class. 

When debugging and using Step Into, the IDE will navigate you to the class based on your JDK version, not the language level of your module.

Frameworks and technologies 

Support for OpenRewrite 

IntelliJ IDEA integrates OpenRewrite, expanding the IDE’s existing refactoring capabilities and providing you with a toolkit to improve code quality, consistency, and maintainability. Using OpenRewrite’s recipes, you can modernize legacy code, optimize performance, and handle complex migration tasks such as, for example, upgrading to a new Spring Boot version.

WireMock server support

In IntelliJ IDEA 2024.1 EAP 7, we’re introducing WireMock support via a plugin that you can get from JetBrains Marketplace or install from inside the IDE. This integration includes schema completion for JSON configurations, the ability to generate WireMock stub files from the Endpoints tool window, and a built-in server run configuration that allows users to spin up the server directly from the editor. This addition enables you to swiftly create test data servers or stubs, simplifying the development of web UIs and microservices.

User experience

Refreshed product icons

The latest EAP build for IntelliJ IDEA 2024.1 introduces refreshed product icons, aligning with updates across all JetBrains IDEs and enhancing visual appeal and consistency across the ecosystem.

Version control systems

Option to exclude folders and files from comparison

We’ve enhanced the diff viewer with an option to specify specific folders and files to be ignored during the comparison process so that you can focus solely on relevant changes. Just right-click on any file or folder you don’t want to appear in the comparison results and select Exclude from results from the context menu. 

Improved search in the Branches popup

We’ve enhanced the search functionality available in the Branches popup. With this update, you can now filter search results by actions and repositories for quicker and more precise navigation within your version control system. 

Support for --update-refs for interactive rebase

The Rebase dialog now features the --update-refs option, meaning that once it is selected, IntelliJ IDEA ensures that the Git repository’s history accurately reflects the modifications made during the rebase operation. 

These are the most notable updates brought by this week’s EAP build. For a comprehensive overview of all the implemented changes, please refer to the release notes

As we approach the culmination of the IntelliJ IDEA 2024.1 Early Access Program, we highly value your feedback on the new features since your insights play an essential role in molding the final version of the release. Feel free to share your thoughts in the comments below or via X (formerly Twitter). Should you encounter any bugs, please submit a report via our issue tracker

Happy developing! 

image description

Discover more