How to configure Eclipse to automatically insert import statements for classes with one package match

Is it possible to configure Eclipse to automatically insert an import statement whenever the class name has only one package?

Note. "Settings / Java / Editor / Content support / Insert individual sentences automatically" is enabled

thanks

+4
source share
1 answer

As @Bala R commented, Ctrl - Shift - O (Organize Imports) is the way to go.

"Insert individual sentences automatically" only to support content - for example, code completion.

+4
source

All Articles