Fresh EAP with Refactorings to Java 8, Better VCS and Gradle Integrations
More Refactorings to Java 8
First of all, we continue with tuning the inspections that help refactor regular code into idiomatic Java 8.
Now, when it’s appropriate, IntelliJ IDEA will prompt to replace certain code with:
As you can see, such inspections can make code much shorter and easier to read. For instance, look at the sample from a real codebase:
Just as with any other inspection, these can be run in batch mode on any scope withing your project.
Better VCS Integration
Earlier we mentioned that the layout of the Log viewer has been reworked to made it more compact. With this build, we’ve stepped even further and redesigned the branch labels:
Labels have been moved to the right side and are now displayed in a more elegant way. As a result, there’s more space for displaying the commit messages. Also, we’ve decided not to show tag names in this mode. If a branch and its tracked branch are on the same commit, they are displayed as “origin & master” (instead of “origin/master” + “master”).
A subtle, yet helpful improvement is the full syntax highlighting for non-local revisions in the Diff and Merge dialogs:
To get it working, we’re building the PSI tree rather than relying on lexer tokens. As a nice side-effect, you get the code navigation here as well.
Also, we’ve added line markers to the Merge dialog to indicate actual changes to the base revision:
We believe this will make it easier to understand what changes are actually going to be applied.
Delegating IDE build/run actions to Gradle
Last but not least, for Gradle projects, we’ve added an option that delegates the native IntelliJ IDEA Build, Build Artifacts (both WAR and EAR) and Run actions to Gradle: Settings → Build, Execution, Deployment → Build Tools → Gradle → Runner → Delegate IDE build/run actions to gradle.
When this option is selected, all these actions are performed via corresponding Gradle tasks. The Run action is delegated to the dynamic Gradle JavaExec task configured according to the run configuration. Exploded artifacts aren’t supported yet, but we’re working on it.
Develop with Pleasure!
Subscribe to Blog updates
Build a Spring Boot App with AI Assistant
In this article, we’ll be building a small Java Spring Boot web application in IntelliJ IDEA with the help of JetBrains AI Assistant. If you’d like to follow along with this tutorial, you’ll need IntelliJ IDEA Ultimate, as well as an active subscription to AI Assistant or the free seven-day trial…
IntelliJ IDEA 2024.1 EAP 6: Improved Workflow for Logs, Inline Breakpoints, In-Editor Code Review, and MoreEarly Access Program
IntelliJ IDEA 2024.1 EAP 6 is here! This new build is packed with a bunch of updates anticipated for the next major release. Highlights include an enhanced user experience with logs, advanced debugging capabilities, and improved integration with version control systems. You can download the new v…
IntelliJ IDEA 2024.1 EAP 5: Enhanced Support for GitHub Actions, Updates for the HTTP Client, and MoreEarly Access Program
Packed with numerous new features and enhancements, IntelliJ IDEA 2024.1 EAP 5 brings extended support for GitHub Actions, improved integration with popular frameworks such as Spring and Quarkus, updates to the HTTP Client, and much more.
IntelliJ IDEA 2024.1 EAP 4: Sticky Lines, Improved Startup Experience, and MoreEarly Access Program
The Early Access Program for IntelliJ IDEA 2024.1 continues with our latest build where you can preview new features, including convenient sticky lines in the editor, faster access to IDE functionality while indexing, and more. You can download the new version from our website, update directly fr…