IntelliJ IDEA 2020.2 is released!
IntelliJ IDEA 2020.2 is full of fantastic features. These include: more advanced support for the GitHub pull request, a new Inspections Widget that displays the number of warnings and errors in an open file and allows quick navigation between them. Then, the Problems window, which provides details about the problems in your current file and allows you to resolve them quickly, and Related Problems, which notifies you when your changes break other files. There is also a bunch of new enhancements for a number of frameworks and technologies, including Jakarta EE, Quarkus, Micronaut, Amazon SQS API and OpenAPI.
- Java 15 will be released in September and IntelliJ IDEA 2020.2 is ready for it. Records support has been updated, basic support for Sealed Classes and full support for Text Blocks have been added, which are new features fully supported in Java 15.
- If changes you make to a Java method or field cause errors in other files, the IDE will notify you immediately. Click on this notification and the IDE will give you a list of errors so you can correct them.
- If an exception occurs during the launch of your application, the IDE can use static analysis to find its root cause and determine the exact statement that caused the exception.
- You can easily create inspections from structural searches and specify a description and severity for each of them.
- Introducing Variable refactoring can now replace variable occurrences in the medium range, as opposed to replacing only one or all occurrences.
- Now you can start entering the Stream API method directly into a collection or array, and the IDE will suggest to automatically insert '.stream ()' for you.
- Another improvement of the Stream API is that the IDE now suggests chained calls of the expected type in the autocompletion.
- A new action has been added that can turn the optional chain into a chain of "if" statements.
- Data flow analysis can report non-trivial expressions known to have 0 and warn you of unnecessary comparisons in which Math.min or Math.max is never greater or less than the second operand.
- Java templates are grouped under the Java node in Settings / Preferences to make it easier to find them among the live templates for all the other languages.
To learn more, visit the Java section of What's new?
- A brand new Inspections Widget has been introduced that displays the number of warnings and errors in the current file and allows easy navigation between them.
- There is also a new Problems tool window that displays a list of warnings and errors in the current file and describes these problems that you can quickly resolve directly from the tool window.
- Before you apply quick fixes and planned changes to your code, you can preview the result.
- The background processes dialog box has been updated to make your desktop less congested.
- The user interface (UI) of the status bar is arranged to look neater.
For more details, see the Editor section on What's new.
- Now the entire flow of the GitHub pull request can be performed directly from the IntelliJ IDEA. It is possible to view, assign, manage and even merge pull requests, view the timeline and comments, send comments and reviews, and accept changes.
- IntelliJ IDEA 2020.2 supports Git installed in WSL 2 to work with projects located in Linux or Windows file systems.
- Git dialogs for actions like merge, pull, and rebase have been updated to get more visual consistency and look less congested.
- The option for squash commits from the Git log view has also been added.
- The Drop Commits store is now also available from the Git logo.
- When comparing two branches in IntelliJ IDEA, you will be able to see the commits of the branches you are comparing in one view.
- We have transferred GitHub password-based authorization, which will soon cease to work, to OAuth.
To learn more, visit the Version Control section on What's new.
Frameworks and technologies
- We have added support for Jakarta EE 9. The IDE now supports the following Jakarta EE technologies: CDI, JPA, Batch, Bean Validation, JSF, JAX-RS, WebSocket, Servlets, JSP, JSON-P, JSON-B, Security, and EJB and JTA specifications.
- You can also create Java EE 8 and Jakarta EE 9 projects using the updated New Project Wizard.
- The IDE now offers highlighting and code completion for .properties and YAML configuration files on your Quarkus projects.
- From Quarkus properties files you can navigate through the configured beans and vice versa using the IDE. You can also move from Java code to file properties.
- IntelliJ IDEA allows code reference completion in REST Assured tests. Navigation from URLs to linked resources is now also available.
- The IDE now integrates the Swagger UI tool.
- IntelliJ IDEA can now calculate the structural difference between OpenAPI specifications.
- It is now possible to generate a new Micronaut project via the New Project wizard.
- For Micronaut and Amazon SQS API applications that use asynchronous communication via RabbitMQ or Kafka, the IDE now offers navigation via edge icons, finding usage, and filling in names for message queues and topics.
- The IDE can automatically generate JAX-RS and MicroProfile HTTP requests and open them in an integrated editor-based REST client.
- The Selenium plugin now integrates with Selenoid and provides an easy way to launch a new test environment directly from the browsers.json file.
To learn more, visit the Frameworks and technologies section on What's new.
- The HPROF memory browser has been improved in this release. In addition to general heap data, it now also shows calculated retained object sizes, shortest paths to garbage collector root, dominator tree for objects (retained items), and input references. Find out more.
- The new Shared Indexes plugin, which allows you to download indexes instead of creating them locally, reduces indexing time on large projects by about 60-75%.
- Completion for Java and PHP is now available during indexing.
- Progress bar indicators have also been updated to make them less visually cluttered. The user interface (UI) of the status bar has also been updated.
For more details on these new features, visit the User Experience section on What's new.
- It is now possible to call IDE features directly from the Terminal. When you see the highlighted command in the Terminal, press Cmd/Ctrl + Enter to open the corresponding GUI tool. Find out more.
- IntelliJ IDEA 2020.2 supports Maven wrapper which automatically installs the required Maven version into your project.
- It is now possible to set the Maven version for each project individually in IntelliJ IDEA. Prior to that, the Maven version was shared on all open projects.
- The build output of the source IntelliJ IDEA builder is now displayed in the Build tool window - a tool window we already use to report Gradle and Maven results.
- The IDE now allows project name completion and navigation from project name to build.gradle files.
See the Build Tools section of the What’s new page for more details.
- New smart intentions will help you perform some actions faster. For example, you can now quickly convert a for loop using a numeric index to the forEach method.
- A setting to support Nuxt.js and Vue code writing style has been added.
See WebStorm What’s new for more details.
- You can view and edit a long cell value on a separate panel using the new Maximize mode.
- It is now easier to view and edit boolean values because they are displayed not as check boxes, but as raw values.
- You can now view queries with your changes in the data editor.
- Support for a new SQL dialect - Google BigQuery has been added. The IDE correctly highlights your queries and offers coding help for them.
See the Database Tools section on the What's new page for more details.
- IntelliJ IDEA 2020.2 allows you to connect securely to the Docker on Windows, as support for TLS connections to the Docker daemon from IntelliJ IDEA has been added.
To learn more, visit the Docker section on What's new.
- You can now specify a custom kubeconfig file in Preferences / Settings | Build, Execution, Deployment | Kubernetes.
- ConfigMaps / Secrets editing support has been added, and in addition, the IDE takes information not only from the current project, but also from the cluster.
- It is now possible to call Find Usages from the ConfigMaps / Secrets cluster and their keys.
See Kubernetes on What's new for more details.
- Added auto-import for Implicits. Find out more.
- Now both braces are added and removed automatically based on the indents. Find out more.
- IntelliJ IDEA can render Scaladoc in an editor to look crisp and concise.
- Scaladoc rendering in the Quick Documentation popup has been improved - it can now manage paragraphs, lists and macros properly.
- You can now automatically complete the method name and its arguments in one step, as long as the corresponding values are present in the current scope.
- You can now apply a "static" function to an argument using dot notation, which can be used in combination with algebraic data types (ADT).
- IntelliJ IDEA 2020.2 includes all changes from Android Studio 4.0. To learn more about the features of this new version, read the Android Studio blog post.
- IntelliJ IDEA 2020.2 will detect when you use a screen reader and will automatically enable IntelliJ IDEA for accessibility features.
- IntelliJ IDEA 2020.2 includes support for Unicode emoji characters on Linux.
- Remote debugging performance for Java projects is significantly improved.
- JetBrains migrated from JavaFX to JCEF (Chromium Embedded Framework). Starting with v2020.2, it stopped grouping JavaFX that is being offered as a separate plugin so that external JavaFX-dependent plugins can use it as a dependency.
- The shortcut Alt + 6 (Linux and Windows) / Cmd + 6 (macOS) has changed its function and will now call the Problems tool window instead of calling TODO.
- Starting with v2020.2, the IDE will not support running and testing projects on Java version 5 or earlier. The editor will still support Java 5.
- Many plugins for technologies that are no longer common have been separated into separate packages: JBoss Seam, JBoss jbpm, Play Framework, Flash/Flex, ASP, CFML and Struts 2.
A full list of all issues resolved in this release can be found in the release notes.
Be sure to visit the What's new page for more details and screenshots, and don’t forget to watch the video with a full preview.
Update to IntelliJ IDEA 2020.2 and enjoy a range of amazing new features in your favorite Java IDE!