Is it possible to configure Eclipse so that it automatically inserts an import statement whenever a class name has just one package match ?
Note: "Preferences/Java/Editor/Content Assist/Insert single proposals automatically" is turned on
Thank you
As @Bala R commented, Ctrl-Shift-O (Organize Imports) is the way to go.
"Insert single proposals automatically" is only for content assist - e.g. code completion.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With