Paul Krill
Editor at Large

JetBrains IntelliJ IDE debuts ‘run targets’

news
Apr 21, 20212 mins

New feature in IntelliJ IDEA 2021.1 allows developers to execute code in a Docker container, SSH server, or WSL for remote testing and debugging.

binary target
Credit: Violka08 / Getty Images

JetBrains has released IntelliJ IDEA 2021.1, an update to the company’s flagship IDE that offers a new way to run applications from the IDE. The new version also improves Kotlin support and adds support for Java 16.

Published on April 6, IntelliJ IDEA 2021.1 is the first release of the IDE this year. Highlighting the release is a new way to run applications from inside the IDE, whereby developers can edit the run configuration of an application or test to set the run target—a Docker container, an SSH server, or Windows Subsystem for Linux (WSL), in this initial version. Previously, apps would be run locally, with all settings from the IDE.

With the new run configuration option, developers could, for example, run a Spring Boot application with an SSH or Docker target. If Docker is selected, developers can choose to pull or build an image. If an image is pulled, code completions help to select the correct image.

Also featured in IntelliJ Idea 2021.1 is support for Java 16, which was released in March, with the ability, for example, to refactor records in the same as other Java classes. Existing code can be migrated to use new language features.

Another new feature allows developers to select an inspection profile providing analysis before the commit phase. Also new is a built-in preview for HTML, to get an idea of what changes will look like as they are being made, and functionality to deal with JSONPath expressions.

Other new features and improvements in IntelliJ Idea 2021.1:

  • For the Kotlin language, developers can define illegal package dependencies in Kotlin code. Defining illegal package dependencies can prevent code from accidentally depending on the wrong packages, such as the database layer relying on the UI layer. This capability has been available for Java code. Kotlin/JVM developers also gain UML diagrams for Kotlin classes. Also, syntax and error highlighting for Kotlin is faster, as is code completion.
  • Windows Subsystem for Linux support has been improved, with support for Java projects in WSL2 and for Maven and Gradle.
  • The Profiler has had a facelift to make it easier to use.
  • Usability improvements and bug fixes have been made, such as an improved color scheme for UML diagrams in the UI.
  • The Space team collaboration plug-in and the Code with Me collaborative development tool are now bundled with IntelliJ.

IntelliJ Idea 2021.1 is downloadable from jetbrains.com or via the JetBrains Toolbox app.

Paul Krill

Paul Krill is editor at large at InfoWorld. Paul has been covering computer technology as a news and feature reporter for more than 35 years, including 30 years at InfoWorld. He has specialized in coverage of software development tools and technologies since the 1990s, and he continues to lead InfoWorld’s news coverage of software development platforms including Java and .NET and programming languages including JavaScript, TypeScript, PHP, Python, Ruby, Rust, and Go. Long trusted as a reporter who prioritizes accuracy, integrity, and the best interests of readers, Paul is sought out by technology companies and industry organizations who want to reach InfoWorld’s audience of software developers and other information technology professionals. Paul has won a “Best Technology News Coverage” award from IDG.

More from this author