Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Eclipse how to directly show a list of available functions

Tags:

java

eclipse

Eclipse has a feature in which you write a classname followed by a dot, and a list of available public functions appears. But what if I want to see the functions of the class I am currently in? The only solution I know is to write this., select the function from the appearing list, and delete the this..

Is there any way to show the popup menu without writing this., a hotkey perhaps?

like image 685
Martin Fahl Avatar asked Mar 10 '13 15:03

Martin Fahl


People also ask

How do I get Eclipse to show suggestions?

Step 1: Open your Eclipse or Spring Tool Suite, then go to the Window > Preferences as shown in the below image. Step 2: In the next screen go to the Java > Editor > Content Assist > Auto activation triggers for Java as shown in the below image.

How do I display tabs in Eclipse?

Check the option " General > Editors > Text Editors > Insert spaces for tabs ": if unchecked, it will display tabs, not space.

How do you find where a function is called in Eclipse?

Right click and select References > Project or References > Workspace from the pop-up menu. Show activity on this post. This will show you a Search view containing the hierarchy of class and method which using this method.

How do you jump to function in Eclipse?

Select the method and press f3 (or context menu -> open declaration). If it jumped to function implementation, repeat this action and it should go to function definition.


2 Answers

What you are referring to is called code completion and can be accessed with Ctrl+ Space in Eclipse. This will list all variables, fields, methods, classes that is applicable in the current context.

Also, there is Ctrl + O in Eclipse, which will give you a list of all the available methods in the current class.

like image 97
Simon Forsberg Avatar answered Sep 25 '22 12:09

Simon Forsberg


All you need to do is press the ctrl and spacebar keys.

like image 29
grauwulf Avatar answered Sep 23 '22 12:09

grauwulf