IntelliJ IDEA 2019.2 stable release, a significant upgrade to the year

The long-awaited.

July 24, JetBrains officially released  IntelliJ IDEA 2019.2 stable version . As the second major version of IntelliJ IDEA update this year, the development team, said this version brings many new features and improvements heavy, particularly mentioned include support for Java 13 preview , the introduction of performance analysis tools ( Profiling Tools ) and service tool window ( services tool window ) .

By downloading the installation package or  JetBrains Toolbox App  upgrade.

In this article we take a look at this significant upgrade to the noteworthy updates.

Java

Java 13

IntelliJ IDEA the first to add support for Java 13 (preview), and now supports new Java syntax and expressions Switch 13. In Java 13 may be used instead of the break keyword yield keyword to handle Switch block (multi-line block) switch expression in the return value.

In addition, this version also adds support for text blocks (Text Blocks, formerly known as multi-line strings), which allows us to longer lines of text blocks embedded in the source code, such as HTML or SQL code. With this feature, developers avoid the need for most of the escape sequence, in a predictable way to automatically format strings, format and allows developers to control when needed.

Improved refactoring

在 2019.2 版本中,我们可以将具有多个返回的方法转换为单个退出端点(single exit point),并为内联方法(Inline Method)重构做好准备。通过定义多个返回语句,方法也可以包括多个退出端点(multiple exit points)。

Kotlin

IntelliJ IDEA 内置的 Kotlin 插件现已升级至 v1.3.41 版本。

针对 Scratch 文件的交互模式(Interactive mode)提供即时显示变更

在 Kotlin 中,我们可以使用 scratch 文件对代码执行实验性操作。此版本新增了交互模式(Interactive mode),该模式在特定时间后会即时显示结果,而无需我们显式重新运行脚本。

TODO 列表支持显示多行 Kotlin 注释

您多久检查一次项目中的TODO列表?IntelliJ IDEA 2019.2 会高亮显示多行 Kotlin 的 TODO 注释,并在 TODO 工具窗口中以列表的形式展示。

Shell 脚本

添加对 shell 脚本的支持

IntelliJ IDEA 2019.2 为 shell 脚本提供了丰富的编辑支持,包括自动补全关键字和路径、快速文档,以及文本重命名。此外,团队还将多个外部工具集成到了 IntelliJ IDEA 中,以获得更高级的 shell 脚本支持。在此版本中,我们可以使用 Shellcheck 来检测并修复脚本中的错误,使用 Shfmt 对脚本进行规范的格式化,通过 Alt + Enter 使用 Explainshell 来获取对命令的完整描述。

除此之外,还包括对编辑器、Maven 工具、版本控制工具和各种语言支持的改进,性能方面也有了一定的提升,详情请查看更新说明

Guess you like

Origin www.oschina.net/news/108543/intellij-idea-2019-2-released