IntelliJ IDEA 2022.1 officially released, introducing dependency analyzer, new notification window

IntelliJ IDEA 2022.1 is officially released, and the key features of this release are: the introduction of  Dependency Analyzer  to facilitate dependency management and conflict resolution, an updated  New Project  wizard to optimize the startup process of new projects, and the  Notifications notification tool window, which provides A new, simplified way to receive notifications from the IDE. The 2022.1 release also includes many other notable improvements, some of which are excerpted below.

Critical update

  • Dependency Analyzer

To facilitate dependency management and conflict resolution, IntelliJ IDEA implements a dependency analyzer that provides extensive information on all dependencies (including transitive dependencies) used in projects and subprojects.

This new feature allows for easy detection of conflicting dependencies and resolution of issues, such as being able to filter out identical dependencies and see their presence in different libraries, as well as quickly browsing dependencies to build the configuration correctly. 

  • Enhanced  New Project  Wizard

The new project  wizard interface has been redesigned to simplify the process of creating new projects. You can quickly start an empty project; use pre-configured options for Java, Kotlin, Groovy, and JavaScript; or have a more complex project, use the generator.

  • New notification  tool window

The event log instance has been replaced with a new  notification  tool window that more clearly highlights important and useful suggestions and notifications and organizes them in dedicated tool windows. See the blog post for more details .

user experience

  • Maven Archetype Optimization in New Project Wizard

As part of the UI overhaul of the New Project wizard, IntelliJ IDEA has redesigned the Maven Archetype project generator, and the 2022.1 release introduces a "search as you type" feature when browsing archetypes, as well as the ability to manage the archetype catalog during module creation.

In addition, desired properties can be entered as prototypes:

  • Split tabs evenly

IntelliJ IDEA 2022.1 can evenly distribute the workspace between editor tabs, making them the same width.

  • Export UML diagrams to other formats

UML diagrams can now be exported as yEd .graphml, JGraph .drawio, Graphviz .dot, Graphviz .dot with location, Mermaid .md, Plantuml and IntelliJ IDEA .uml files, making them compatible with 3rd party tools.

  • Updated Structural Search and Replace dialog  

The structural search and replace dialog has been redesigned to provide a list of all templates for easier navigation between them. 

Safety

  • package checker plugin

intelliJ IDEA 2022.1 can now detect vulnerabilities in Maven and Gradle dependencies used in projects by checking the  Checkmarx SCA database and the National Vulnerability Database .

Java support

  • Java 18 support

IntelliJ IDEA 2022.1 supports the new features of Java 18 released in March 2022. The IDE now supports code snippets, pattern matching changes for switch expressions, and more. See this blog post for details .

  • Java decompiler

The Java decompiler is now more compatible with the Java 17 release. It supports modern language constructors such as sealed types and pattern matching, has better string decompilation toggles, provides type annotations and detects public constants.

 

  • Better JUnit 5 support

Added support for new features introduced in JUnit 5.7, including support for @EnabledIf/DisabledIf, , @NullSource/EmptySourceand @TempDirannotations.

Update Surround with try/catch  templates

The updated Surround with try/catch template now rethrows the exception wrapped in a RuntimeException instead of swallowing it.

Kotlin support

IntelliJ IDEA 2022.1 supports Kotlin 1.6.20, so the latest Kotlin language features, such as support for parallel compilation, context sink prototypes, and better code sharing across all Kotlin targets, are now available in the IDE. Learn more about the new Kotlin update in this blog post .

  • Improved Kotlin IDE performance

Package indexing has been optimized to greatly improve the IDE's speed when performing operations related to code completion, highlighting, and reference searches, and the number and scope of reindexing cases that occur after code changes have been reduced.

Frameworks and Technologies 

Go Microservice Support

  • Added support for Go microservices, providing features such as URL path references, endpoints, Search Everywhere, and gutter icons. Using these functions requires the Go plugin to be installed in IntelliJ IDEA Ultimate, and currently only works with standard library functions.
  • IntelliJ IDEA Ultimate now provides completion for HTTP methods and headers in Go files, a globe icon will appear next to each endpoint, and if you click it, IntelliJ IDEA Ultimate will suggest several options.

Code Insights Improvements for Spring Data Mongo

Numerous updates have been introduced to improve the user experience with Spring Data MongoDB. IntelliJ IDEA now highlights JSON queries, completes operators and document fields, and provides navigation from mapped entities to  database  tool windows.

Better support for .proto files

Introduced a new intent action for .proto files: Added missing import statements for unresolved message references, after adding a missing import statement, the IDE will provide completion suggestions for message references.

gRPC reflection support

  • IntelliJ IDEA Ultimate now provides code completion for service name, method name, and request body options when a .proto file describing a gRPC service exists in the project. What's more, requests can now be run through the gutter icon.
  • If the project doesn't have a .proto file, but the server supports gRPC reflection, you will be able to run the request, complete with the service and method names of the server running instance.

Kubernetes support

Governors

Editing resources on a cluster

Resources loaded from the cluster can now be modified from the editor tab.

Custom path for kubectl

Paths can now be manually configured if kubectl is not in a standard location.

forward port 

This release adds port forwarding to pods. To forward ports, you can use the icon on the toolbar or select the context menu item.

Describing resource operations in the service view 

All resources in the "Services " view have a new " Describe Resource" action, which can be invoked from the context menu or using the toolbar button.

Support for events in clusters

Cluster events are now displayed in a separate node in the services view, providing data about recent events in the system.  

To see events for a specific pod, call Describe Resource on it and look for the Events section in the action results   

support

Introduced limited editor support for werf.yaml and related Helm template files ( https://werf.io ), including code completion, inspection and quick-fix suggestions, refactoring/renaming. Values.werf.image. * , and validation of some fields, such as boolean and int .        

Import subvalue support for Helm

Support for importing sub-values ​​via the import-values ​​setting, which affects completion/navigation of built-in objects in templates. Enhanced editor support for the import-values ​​field is not yet available.  

Note that Kubernetes functionality is only available in IntelliJ IDEA Ultimate and requires plugins to be installed.

build tools

  • Update Gradle's progress bar

Implemented a deterministic progress bar for Gradle processes, such as downloading dependencies and importing artifacts, allowing to track what happened to files and estimate when the process is complete.

 

This release also includes a number of updates, details of which can be found in the update bulletin .

Guess you like

Origin www.oschina.net/news/190966/intellij-idea-2022-1-released