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?
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.
Check the option " General > Editors > Text Editors > Insert spaces for tabs ": if unchecked, it will display tabs, not space.
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.
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.
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.
All you need to do is press the ctrl and spacebar keys.
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