Eclipse – Auto complete for static import

To enable auto complete for static field and methods from a given type you can add that type into Favorites section in the eclipse preference.

Go to windows > preferences > java > editor > content assist > favorites and click on the New Type button and type in the absolute class name. (ie org.junit.Assert.*)

Eclipse Static Import Auto Complete

Leave a comment

Your email address will not be published. Required fields are marked *