For Java, can I import all packages at once?

后端 未结 6 1112
不思量自难忘°
不思量自难忘° 2021-01-18 07:15

For example, the third party library uses very complex directory structure for the package. Can I import them at once. the star seems can only imports one directory level.

6条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-18 07:32

    You can import only one directory level.

    In IntelliJ Ctrl + Alt + O shortcut can be helpful to:

    • organize existing imports
    • remove unneeded imports
    • add required imports

    You can also adjust the auto-import settings under "Settings → Editor → General → Auto Import"

提交回复
热议问题