Tuesday, 12 June 2018

Content assist for static methods in Eclipse

It's a great time saver to get auto-completion and import generation in Eclipse even for those of us who are fairly quick with the keyboard.  But Eclipse won't search for static class methods without a little bit of help.

The newer version of Eclipse does include more defaults, but a preferences dialog is provided to tell Eclipse that you're likely to want to use some static imports.

To add a class go to Java | Editor | Content Assist | Favourites in preferences:





What's shown here are the defaults in STS 3.9.4.RELEASE.


No comments:

Post a Comment