IDEA 2020 Maven auto-import

末蓝、 2023-03-14 10:37 136阅读 0赞

现在发现这个idea 修改pom.xml 怎么不会自动导包了。
Import Maven projects automatically 按钮也没有了

看到官网有这么一段话

IntelliJ IDEA 2020.1 brings a small but important update to our Maven and Gradle users. Instead of the old auto-import, there’s now a floating notification in the upper-right part of the editor. Use this notification or a new shortcut (Ctrl+Shift+O for Windows and Linux /Shift+Cmd+I for Mac) to load the changes after you modify the build file. It gets even better: when IntelliJ IDEA detects any changes to the build file made outside the IDE, such as VCS updates, it reloads the related projects automatically.

大致意思就是用右上角的小按钮替代了之前的自动导包功能。
在这里插入图片描述
这样将自动导包的动作交还给用户,更自由,不会依赖没有写完, 下面就开始导入了。
当然对于习惯了的用户可能觉得不方便了。
见仁见智吧。

发表评论

表情:
评论列表 (有 0 条评论,136人围观)

还没有评论,来说两句吧...

相关阅读