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?
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.
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.
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.
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.
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