What is the keyboard shortcut for method suggestions in Eclipse on Mac OS X?
For OSX Mavericks/Yosemite and later/earlier versions.
By default, Ctrl+Space is mapped to Spotlight, therefore if you want to use this shortcut in Eclipse you'll need to unmap it:
- Go to -> System Preferences -> Keyboard.
- Click the Shortcuts tab.
- Select Spotlight in the left pane (see screenshot below).
- Untick Show Spotlight Search field next to the shortcut combination ^Space as shown in the screenshot below.
NOTE: obviously, you can just remap the Spotlight hot key to something else, in case you want to have a shortcut for it, e.g. I remapped it to Alt+F2. Keep in mind, you can always bring up the Spotlight search field by clicking it's icon (ð ) in the MacOS menu bar.
Now Ctr+Space should work in Eclipse as expected.
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.