IntelliJ IDEA 2018.2 Beta 版本已发布,基本包含即将到来的 2018.2 正式版中的所有新特性,包括 Java 11 支持、MacBook Touch Bar 支持、Spring Boot 改进、VCS 改进等。抢先下载尝试:
https://www.jetbrains.com/idea/nextversion/
IntelliJ IDEA 2018.2 可从 Touch Bar 运行、构建、调试、提交更改并更新项目。
2、Java 11
Java 11 中的主要代码特性是 Lambda 参数的局部变量语法 - Java 10 是支持将 var关键字作为方法内的变量, Java 11 则是允许在 lambda 表达式中使用 var :
BiConsumerB <Processor, String> consumer = (var x, var y) -> x.process(y);
IntelliJ IDEA 2018.2 已为下一个 Java 版本做好准备:
3、Java 重构
IntelliJ IDEA 2018.2 为提取方法( Extract Method )引入了一个新的预览面板,当使用重复的代码片段进行重构时,这可能非常有用。现在单击“ 预览”按钮即可预览所有更改,方便在进行实际更改之前,检查重构的结果。
JAVA
Java 11 support: Learn more
The IDE now displays type hints for long method chains.
New preview panel for the Extract Method refactoring.
New @Contract annotation return values: this , new , and paramX .
Many new Java inspections.
JVM DEBUGGER
New caller filters in breakpoint settings and new breakpoint intentions.
USER INTERFACE
Support for the MacBook Touch bar .
VERSION CONTROL SYSTEMS
Files with merge conflicts are now grouped under the new Merge Conflicts node on the Git Log tab.
You can preview a Diff in the VCS Log.
Tags can be deleted from Git commits via the context menu of the Log tab.
Configure as many GitHub accounts as needed in Preferences | Version Control | GitHub .
Open several Log tabs in the Version Control Tool Window .
SPRING BOOT
Use the new Spring Runtime Beans diagram to visualize the dependencies between beans at runtime.
Manage HTTP requests mappings from the Run Dashboard .
更多细节可查阅: