IntelliJ IDEA 2019.3 EAP7 版本发布

Zlata Kalyuzhnaya 发布于 2019.10.23git

Posted on October 23, 2019 by Zlata Kalyuzhnaya web

咱们为即将到来的 IntelliJ IDEA 2019.3 提供了全新的 EAP 版本。快来看看都有哪些改进!app

We have a fresh EAP build for the upcoming IntelliJ IDEA 2019.3. Come and have a look at the new improvements this new build has to offer! ide

版本控制网站

Version Controlui

为了解决一系列可用性问题,咱们删除了 Checkout as 操做,并为远程分支引入了新的统一Checkout 操做,并为远程分支和本地分支引入了 New Branch from Selected 操做。this

To resolve a bunch of usability issues, we removed ‘Checkout as’ and introduced a new unified Checkout action for remote branches and the ‘New Branch from Selected’ action for both remote and local branches.idea

以前 IDE 有个 Checkout as 操做,该操做调用 git checkout -b localbranch remote / branch 命令,将 checkout 出的分支设置为跟踪远程对应分支。插件

Previously the IDE had the ‘Checkout as’ action that set the checkout branch as a remote tracked branch, as it called the git checkout -b localbranch remote/branch command. 版本控制

可是,看起来它的操做结果并不是某些用户指望的那样。由于这种状况下,在推送分支的弹出对话框中,跟踪的分支将做为默认的推送目标分支,可是若是用户想建立一个基于所选发布分支建立新特性分支,一般他们但愿该分支默认推送到新的远程分支,而不是发布分支。

But, it appears that the way it behaved was not what some users expected. A tracked branch is proposed as a default push target in the push dialog, and if a user decided to create a new branch, a feature branch, for example, from the start point of the selected release branch, usually the user would want to push this branch to a new remote branch, and not to the release branch.

“New Branch from Selected” 操做

‘New Branch from Selected’ action

为了确保操做逻辑清晰,咱们引入了 “New Branch from Selected” 操做 - 该操做将建立一个新分支,但不设置跟踪的远程分支。

To ensure clarity, we’ve introduced ‘New Branch from Selected’ – this action creates a new branch but no tracking is set.

在本地和远程分支均可以使用 “New Branch from Selected” 操做。

The ‘New Branch from Selected’ action is available for both local and remote branches.

统一远程分支 Checkout 操做逻辑

Brand new unified Checkout action for remote branches

如今,当您在远程分支上调用 Checkout 操做时,IDE 将静默建立一个新的本地分支,将其 Checkout,在没有相同名称的本地分支的状况下,自动跟踪所选的远程分支。

Now when you invoke the Checkout action on a remote branch, the IDE will silently create a new local branch, check it out, and set tracking of the selected remote branch if there is no local branch with the same name.

若是存在具备相同名称的本地分支,它会自动跟踪远程分支,但在 Checkout 期间不会丢失任何提交,IDE 将对本地分支进行 fast-forward更新(将其静默 rebase 到远程分支),而后再进行 Checkout 操做。

In cases where there is a local branch with the same name, it tracks remote but no commits will be lost during the checkout, the IDE will do a fast-forward update of the local branch (silently reset it to remote), and check it out.

若是提交可能因为重置而丢失,则 IDE 将显示一个确认对话框,并提供不管如何重置或对本地分支执行 Checkout&Update 的选项。

If commits can be lost because of the reset, the IDE will show a confirmation dialog, and offer options to reset anyway or perform a Checkout & Update for the local branch.

IDE 还将显示一个选项对话框,不管如何均可以对其进行重置,若是本地分支跟踪另外一个远程分支,则更改跟踪或使用新名称建立分支。

The IDE will also show an options dialog offering to reset it anyway, and change the tracking or create a branch with a new name if the local branch tracks another remote branch.

您能够从 Branchs 弹出窗口或 Log 上下文菜单中调用远程分支的 Checkout 操做。

You can invoke the Checkout action for remote branches either from the Branches popup or the Log context menu.

更好的插件管理

Better plugin management

即将发布的 IntelliJ IDEA 2019.3 将容许您安装,卸载,启用和禁用主题插件,无需从新启动 IDE 即刻生效。

The upcoming IntelliJ IDEA 2019.3 will allow you to install, uninstall, enable, and disable a theme plugin without restarting the IDE.

快捷键映射插件也不须要从新启动 IDE 便可生效。

The keymap plugins also don’t need the IDE to be restarted anymore to work.

支持 Spring Boot 2.2

Spring Boot 2.2 support

即将推出的 IntelliJ IDEA 2019.3 如今支持 Spring Boot 2.2,其中包括对@ConfigurationPropertiesScan 的支持。此外,也支持 application.yml 中的布尔值 onoff

The upcoming IntelliJ IDEA 2019.3 now supports Spring Boot 2.2, which includes support for @ConfigurationPropertiesScan. Also, ‘on’ and ‘off’ as boolean values in application.yml are supported as well.

能够注入更多模板语言

More template languages can be injected

在即将到来的 IntelliJ IDEA 2019.3 中,如今能够在代码中注入更多模板语言,特别是:Pug(ex-Jade)HandlebarsEJSSlim。要将模板插入代码中的某个位置,请按 Alt + Enter,选择 Inject Language,而后从列表中选择一种语言。

In the upcoming IntelliJ IDEA 2019.3, it is now possible to inject more template languages into your code, specifically: Pug (ex-Jade), Handlebars, EJS, and Slim. To inject a template somewhere in your code, press Alt+Enter, select Inject Language, and then pick a language from the list.

请注意,您须要安装相应插件才能得到在代码中插入模板语言的支持。另外,只有 IntelliJ IDEA Ultimate 支持上述模板语言。

Please note that you need to install the plugin that supports the template language that you are going to inject into your code. Also, all template languages are supported in IntelliJ IDEA Ultimate only.

若是您在 IntelliJ IDEA 使用的模板语言不在上述列表中,请在咱们的问题管理系统中提出你的需求。

If you’re working with another template language in IntelliJ IDEA which is missing from the list above, please file a new issue in our tracker.

快下载试试吧!

Try it!

从咱们的网站下载新的 IntelliJ IDEA 2019.3 EAP 版本或使用 ToolBox 更新。

Download the new IntelliJ IDEA 2019.3 EAP build from our website or update to it using the ToolBox App.

欢迎在咱们的问题管理系统论坛Twitter 上反馈您遇到的问题。

As always, any and all feedback is very much welcome in our issue tracker, discussion forum, and on Twitter!

快乐开发!

Happy developing!