Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Insert code template in eclipse on mac os x (ctrl-space not working)

Tags:

macos

eclipse

How can insert code template in eclipse on mac os x?

ctrl-space is not working :(

like image 946
Kay Pale Avatar asked Feb 05 '10 17:02

Kay Pale


People also ask

Why is Ctrl and space not working on Mac?

If Cmd + Space doesn't work, that hotkey may be assigned to another feature on your Mac. First, verify that it's not in use for Spotlight by opening Spotlight's System Preferences and disabling the menu keyboard shortcut under Keyboard Shortcuts > Spotlight.

Why Ctrl space is not working in eclipse?

Ctrl+space was not working in my eclipse. Somehow it got disabled. I have tried many options and didnt worked any options. Go to Preferences > Java > Editor > Content Assist > The "Auto activation triggers for Java:" field.


2 Answers

The Ctrl + space or + space can be intercepted by Spotlight (depending on its configuration)

Go into:

System Preferences -> Spotlight

At the bottom, change the Spotlight menu shortcut (Ctrl+Espace) in any other shortcut like:

(cmd) ⌘ + Ctrl + espace

http://km.support.apple.com/library/APPLE/APPLECARE_ALLGEOS/HT2531/HT2531---fr.png

like image 143
VonC Avatar answered Sep 19 '22 15:09

VonC


I know this is an old post, but I didn't find much else when searching for this problem.

In my case (Yosemite - 10.10.5), I found that

System Preferences -> Keyboard -> Shortcuts -> Input Sources

was set to capture Ctrl + space.

enter image description here

like image 27
Matt Avatar answered Sep 21 '22 15:09

Matt