How can I use auto completion in Eclipse adding fully qualified name?
In order to avoid sonar/checkstyle (Unused Imports) issues, we've got the policy to use the fully qualified name in Javadoc.
I'm looking for a method still using auto completion. Something like pressing Shift-key while using auto completion?
Changing settings always using the fully qualified name is not an option, only required in Javadoc comments.
As a workaround to your problem, you can configure Eclipse to automatically remove unnecessary imports whenever you are saving a file (Window - Preferences - Java - Editor - Save Actions - Configure, then in the Unnecessary Code tab, make sure Remove unused imports is checked). Once this is done you can remove the check for unused imports in checkstyle.
I agree this isn't quite what you asked for, but at least you would still make you have no unused imports (assuming everyone on your team configure Eclipse the same way).
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