IntelliJ IDEA 2023.2 New Features Detailed Explanation Part 2!

4 Performance Analyzer

4.1 Using analysis functions from the Run tool window

Using Analysis Features from the Run Tool Window

In 2023.2, IntelliJ profiler features are easily accessible directly from the Run tool window. With the new button, it is invoked on click:

  • Attach IntelliJ Profiler (attach IntelliJ profiler)
  • Capture Memory Snapshot (capture memory snapshot)

There is no need to open the Profiler tool window or start the application from scratch.

Default wall clock analysis mode

Default wall clock analysis mode

We've enhanced the profiling experience in IntelliJ IDEA 2023.2 by making wall clock profiling mode the default option. This profiling method takes into account the total time spent in the method, including wait time. It is measured in ms and is the more powerful and intuitive option.

5 Run/Debug

5.1 Reactor Monoand Fluxvalue calculation

Reactor Mono and Flux value calculation

Reactor Mono and Flux value calculation

Reactor Mono and Flux value calculation

Reactor Mono and Flux value calculation

When debugging a reactive application, it is easy to evaluate the values ​​of watch Monoand Fluxlocal variables of type and . The IDE now detects this during a debug session and provides a corresponding or link in the Variables view , which instantly evaluates Reactive Streams entries when clicked.getcollectList

By default the debugger gets Fluxthe first 100 entries of . This number can be configured at File | Settings | Languages ​​& Frameworks | Reactive Streams (File | Settings | Languages ​​& Frameworks | Reactive Streams).

5.2 Continuous testing for Gradle, Maven and JPS projects

Continuous testing for Gradle, Maven and JPS projects

The automated testing functionality has been extended to be fully compatible with Maven, Gradle and JPS build systems. Also makes continuous test mode easier to activate.

To enable this mode, use the new Rerun Automatically button in the Run/ Debug tool window . Tests run automatically whenever changes are saved, providing instant feedback on code updates.

5.3 Inline breakpoints on return statements

Inline breakpoint on return statement

IDEA provides improved support for setting breakpoints directly at return statements, similar to what is already implemented in lambda expressions. This improvement will provide developers with higher debugging precision and deeper code analysis, bringing more valuable insights into code behavior and return values. To set an inline breakpoint, simply right-click on the binding area next to the statement and select the return option.

6 Version control system

6.1 Options for Committing Specific Lines of Code

Option to commit specific lines of code

2023.2 may choose to submit specific parts of the code block. To perform a partial commit, select the lines in the block and call Include these lines into commit from the context menu . The blocks will be divided into individual rows and the selected row will be highlighted. Rows can be added or excluded from the selection using the check boxes or the context menu.

7 performance

7.1 New tools to easily generate shared indexes

New Tool to Easily Generate Shared Indexes

New Tool to Easily Generate Shared Indexes

New Tool to Easily Generate Shared Indexes

New Tool to Easily Generate Shared Indexes

2023.2 provides new command-line tools to quickly build and upload shared indexes. Designed to simplify teamwork and eliminate time spent indexing large projects locally. The new tool will simplify the process of building a shared index for teams with just a few clicks and no need for multiple scripts and services.

For details, see: https://blog.jetbrains.com/idea/2023/05/intellij-idea-2023-2-eap/#Newtoolforeasilygeneratingsharedindexes.

8 Frameworks and technologies

8.1 Running and debugging Tomcat on WSL

Run and debug Tomcat on WSL

Run and debug Tomcat on WSL

Run and debug Tomcat on WSL

Run and debug Tomcat on WSL

Beginning in 2023.2, it is possible to run and debug applications deployed to Tomcat on the Windows Subsystem for Linux (WSL). To use Tomcat-based applications on WSL, declare environment variables in /etc/environmentor ~/.bashrcfiles .JAVA_HOME

8.2 Sending gRPC requests using TLS in the HTTP client

Send gRPC requests using TLS in the HTTP client

gRPC requests can now be sent over Transport Layer Security (TLS) in HTTP clients. TLS provides encryption and authentication to ensure the confidentiality and integrity of data transmissions. Request syntax support https://and grpcs://schema.

8.3 Improvements to Swagger Codegen

Improvements for Swagger Codegen

Improvements for Swagger Codegen

Improvements for Swagger Codegen

Improvements for Swagger Codegen

The IDE will now provide a better user experience when setting up Swagger Codegen configuration. The Edit Swagger Codegen Configuration dialog has been reworked to make it easier to customize the run configuration to your needs. Alternatively, Swagger Codegen run configurations can be accessed directly from the stapling area without specifying additional settings.

8.4 Support for Swagger and OpenAPI Architectures in HTTP Client

Support for Swagger and OpenAPI schemas in the HTTP client

Support for Swagger and OpenAPI schemas in the HTTP client

Support for Swagger and OpenAPI schemas in the HTTP client

Support for Swagger and OpenAPI schemas in the HTTP client

HTTP clients now understand Swagger and OpenAPI specifications and provide corresponding code completion options for JSON request bodies.

8.5 Redoc UI preview for OpenAPI and Swagger files

Redoc UI preview for OpenAPI and Swagger files

IDEA already supports Redoc UI preview for OpenAPI and Swagger specification files (including YAML and JSON files) , allowing you to switch between Redoc and Swagger UI inside the IDE. With the Redocly integration, you can access the Try it console from within IntelliJ IDEA , use it to set parameters and send requests to the API.

8.6 JSON body completion in JavaScript

JSON body completion in JavaScript

The IDE now provides completion for JSON object keys in JavaScript code, such as fetch()code that calls or references the Axios library using . Spring MVC server endpoints are now supported, and more server frameworks will be added to the list in the future.

8.7 Support for JavaScript imports in the HTTP client

Support for JavaScript imports in the HTTP client

In 2023.2, it is now possible to share common JavaScript code for HTTP client request handlers through imported modules.

8.8 PDF and HTML preview of the response in the HTTP client

PDF and HTML previews of responses in HTTP clients

IntelliJ IDEA is now able to show previews of PDF and HTML files in HTTP client request results.

8.9 Support for GraphQL and WebSocket in the HTTP client CLI

Support for GraphQL and WebSocket in the HTTP client CLI

Support for GraphQL and WebSocket in the HTTP client CLI

Support for GraphQL and WebSocket in the HTTP client CLI

Support for GraphQL and WebSocket in the HTTP client CLI

It is now possible to use the HTTP client CLI in IntelliJ IDEA to interact with the GraphQL API and establish a WebSocket connection to the service for testing or automation scripts.

8.10 Automatic completion of Spring Boot configuration keys in VM options (virtual machine options)

Autocompletion of Spring Boot configuration keys in virtual machine options

When setting up a new Spring Boot run configuration, the VM options field -Dprovides autocompletion options for keys that appear after the flag.

8.11 Spring configuration beans no longer need annotation processors

Spring configuration beans no longer require annotation processors

Simplify the user experience when using Spring's custom configuration beans in IDEA. The IDE now provides code completion and validation in properties and YAML configuration files without setting up a Spring Boot configuration annotation processor.

8.12 New checks for detecting mismatched value types in YAML files

"Norway problem" check in YAML file

In 2023.2 we introduced a new check aimed at eliminating the Norway Problem and preventing accidental misinterpretation of boolean values ​​in YAML files. When a list consists mostly of strings but contains Boolean literals, IntelliJ IDEA will highlight this literal, indicate a potential inconsistency, and suggest adding quotes to it. If the list consists primarily of Boolean literals (eg true, , false, off, or ), any literals that deviate from this pattern will be highlighted as possible errors, though no specific quick-fixes will be suggested in this case on.yesno

8.13 Support for editing AsyncAPI files

Support for editing AsyncAPI files

Using the AsyncAPI specification format in IntelliJ IDEA is now even easier. The IDE supports schema validation and provides code completion for references, the Endpoints view, and the Editor Preview pane.

Guess you like

Origin blog.csdn.net/qq_33589510/article/details/132052982