Idea2020 体验

在疫情所带来的恐慌逐渐扩展到世界各地的时候,jetbrains发布了今年的第一个Idea版本 —— 2020.1。

我是真的想要吐槽,他这次更新为什么要把 Maven 的自动导入包去掉,而且不允许通过配置的方式设置他的开启或是关闭,而是直接去掉。对于过去的使用习惯,习惯的不进行手动的加载,而是将整个Maven项目导入的工作交由IDE自动实现。现在,我需要在导入项目时,不但要编写相关的依赖代码,还要手动的执行导入,无论是手动点击还是使用快捷键。不可避免的,我现在需要人为的执行此操作,而且有时还没生效。

在 jetbrains 书写的更新说明文档中,他们是这样说明的:

Build tools
Maven and Gradle importing updates
v2020.1 makes the importing of Maven and Gradle changes less obtrusive. First of all, we’ve removed the annoying auto-import that used to always trigger, as well as the balloon that used to constantly show up and suggest importing updates before you’d finished updating the script. Instead, there’s now a floating notification in the upper-right part of the editor that will prompt you to load the changes.

You can now also use the shortcuts Ctrl+Shift+O for Windows and Linux /Shift+Cmd+I for Mac to load the changes.

If there are any external changes to the build scripts, such as VCS updates or edits made outside of the IDE, IntelliJ IDEA will reload the related projects automatically.

We’ve also removed the option to enable/disable auto-import from the settings, as the improvements mentioned above have made it redundant.


翻译:

v2020.1使得Maven和Gradle更改的导入不太麻烦。首先,我们删除了总是触发的烦人的自动导入,以及用于在更新完脚本之前不断显示并建议导入更新的提示框。取而代之的是,编辑器右上角现在有一个浮动通知,提示您加载更改。

现在,您还可以使用Windows和Linux 快捷键Ctrl + Shift + O或Mac 快捷键Shift + Cmd + I来加载更改。

如果对构建脚本进行了外部更改,例如VCS更新或在IDE外部进行的编辑,则IntelliJ IDEA将自动重新加载相关项目。

我们还从设置中删除了启用/禁用自动导入的选项,因为上述改进使其变得多余。

------ 本文结束------