Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the keyboard shortcut for method suggestions in Eclipse on Mac OS X?

In Eclipse on Windows can I press myObject.ctrl+space to get a list of all methods for the object. But on Mac OS X this doesn't seem to work. I have tried ctrl+space, cmd+space and alt+space but nothing seems to work.

What is the keyboard shortcut for method suggestions in Eclipse on Mac OS X?

like image 840
Jonas Avatar asked Jan 21 '11 22:01

Jonas


People also ask

How do I get suggestions on Eclipse?

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.

What is the shortcut for main method in Eclipse?

To get public static void main(String[] args) line in eclipse without typing the whole line type main and press Ctrl + space then, you will get the option for the main method select it.

How do I get to Eclipse preferences on Mac?

Under Mac OS X the Eclipse Preferences window is invoked via Eclipse | Preferences . For each of the changes, hit Apply . When all the changes are done, hit OK , which will close the Eclipse Preferences Window.


1 Answers

By default I believe it's ctrl+space. You can check by going to Preferences > General > Keys and filtering for 'content assist'.

If it's not working, you may have a binding from OS X or another application overriding it. If a window with a blank list is popping up, you may need to adjust which suggestions are shown by default in Preferences > Java > Editor > Content Assist > Advanced. You can continue pressing the binding to cycle through the different types of suggestions.

like image 164
William Scott Avatar answered Sep 22 '22 14:09

William Scott