Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use auto completion in Eclipse adding fully qualified name

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.

like image 946
Thomas Avatar asked Jan 21 '13 15:01

Thomas


1 Answers

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).

like image 193
Laf Avatar answered Sep 21 '22 01:09

Laf