What’s New in IntelliJ IDEA 2024.1? Explore Java 22 Support and Enhanced IDE Features
IntelliJ IDEA 2024.1 introduces full line code completion, Java 22 support, a revamped terminal, sticky lines in the editor, improved indexing, scalable UI, language injection in string templates, enhanced log workflow, and a redesigned conflicts dialog, all aimed at streamlining developers' workflows.
JetBrains released the 2024.1 major update for several IDEs, including IntelliJ IDEA, WebStorm, PhpStorm, and PyCharm.
Key Highlights
Support for Java 22 Features
IntelliJ IDEA 2024.1 adds support for the features released in JDK 22, such as final iteration over unnamed variables and patterns, the second preview of string templates and implicit class declarations, and instance main methods. It also supports the new
super(...)preview state for
newstatements.
New Terminal (Beta)
The updated terminal offers visual enhancements and functional improvements, grouping commands into blocks, providing smooth navigation between blocks, command completion, and easy access to command history.
Sticky Lines in the Editor
Sticky lines keep important structural elements like class or method headers fixed at the top of the editor while scrolling large files, ensuring the scope remains visible and allowing quick navigation by clicking the fixed line.
IDE Features Available During Indexing for Java and Kotlin
Code highlighting, completion, and other basic IDE functions are now usable while the project is being indexed for Java and Kotlin, improving the startup experience. Features like “Go to Class” and “Go to Symbol” work even before indexing completes.
IDE Scaling Options
The IDE UI can now be scaled to 90%, 80%, or 70%, allowing flexible adjustment of element sizes.
Language Injection in String Templates
Developers can inject languages into string templates using annotations or the “Inject language or reference” intention (⌥Enter), with IDE suggestions for appropriate language annotations and the ability to edit injected fragments in a separate editor pane.
Improved Log Workflow
The log view now lets users navigate from console log messages directly to the generating code, suggests adding missing loggers, and simplifies inserting logger statements even when the logger instance is out of scope.
Redesigned Conflicts Detected Dialog
The dialog now mirrors the editor content for clearer conflict resolution, remembers window size, offers full keyboard accessibility, and includes updated buttons to streamline the refactoring workflow.
Related Links
What’s New in IntelliJ IDEA
IntelliJ IDEA Download
macrozheng
Dedicated to Java tech sharing and dissecting top open-source projects. Topics include Spring Boot, Spring Cloud, Docker, Kubernetes and more. Author’s GitHub project “mall” has 50K+ stars.
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.