IntelliJ IDEA 2020.2 EAP5 Now released , The main highlights of the new version are as follows :
Java 15 support
Related problems
Intentions preview
Java intention actions improvement
Structure search and replacement check
stay build.gradle In the document completion and navigation Improvement of
Java 15 support
Upcoming IntelliJ IDEA 2020.2 Version already supported Java 15, The Java 15 Planned for this year 9 Monthly release .
IntelliJ IDEA 2020.2 Will support at the same time Java 14 and Java 15 Of preview function . But it's worth noting , along with v2020.3
The release of , The team plans to abandon the Java 14 preview Function support , because IntelliJ IDEA 2020.3 Will be in Java 15 Post release .
Related problems
IntelliJ IDEA 2020.2 A warning will be issued to the user , It is suggested that Java Problems in code related to class or signature changes with external usage . This feature also applies to fields .
Click on the related question to embed the prompt ,IDE Will open “ lookup ” Tool window , It lists a list of issues caused by member signature changes in external files .
Intentions preview
stay IntelliJ IDEA in , You can preview intent actions and quick fixes before you actually apply them to your code . use Alt + Enter Shortcut key call Show
Context Action And select the desired intention operation , And then in the macOS Press up Alt+Space And in the Windows and Linux Press up
Ctrl+Shift+I Preview Results .
Users can use the up and down arrows to preview the results of all available actions .
The development team initially used it as a v2020.1 The introduction of experimental function of .IntelliJ IDEA 2020.2
It is improved , And added more actions that you can preview before applying .IDE It also highlights the code that will be deleted using strikethrough format .
Java intention actions improvement
A new context action is added to collapse multiple statements into a loop .
At the same time, the intention action of unfolding loop is improved . It will get the loop size from the data stream , And this operation is now supported enum.values().
And a new one intention
action, You can copy statements to two “if” In branch . In some cases , Copy part of code to “if” It is reasonable in both branches of the statement . Even if code duplication may be introduced , But if the user wants to refactor the code further , It can also be very useful .
Structure search and replacement check
stay IntelliJ IDEA 2020.2
in , Users can make any number of “ Structure search ” and “ replace ” inspect , And for each inspection , The user can specify the severity level , describe , Or enable or disable the check separately .
Technology