在 mac os x 上的 eclipse 中插入代码模板(ctrl-space 不起作用)
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/2209181/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Insert code template in eclipse on mac os x (ctrl-space not working)
提问by Kay Pale
How can insert code template in eclipse on mac os x?
如何在 mac os x 上的 eclipse 中插入代码模板?
ctrl-space is not working :(
ctrl-space 不起作用:(
回答by VonC
The Ctrl+ spaceor ?+ spacecan be intercepted by Spotlight (depending on its configuration)
所述Ctrl+space或?+ space(取决于它的配置)可以通过聚光灯被拦截
Go into:
进入:
System Preferences -> Spotlight
At the bottom, change the Spotlight menu shortcut (Ctrl+Espace) in any other shortcut like:
在底部,在任何其他快捷方式中更改 Spotlight 菜单快捷方式 ( Ctrl+ Espace),例如:
(cmd) ?+ Ctrl+ espace
(cmd) ?+ Ctrl+espace
回答by Matt
回答by prodigitalson
Did you try cmd+space
and option+space
? Also you should be able to change this key sequence by going to Eclipse > Preferences > General > Keys
你有没有尝试cmd+space
和option+space
?此外,您应该能够通过转到 Eclipse > Preferences > General > Keys 来更改此键序列
回答by Jose M Vidal
If you have emacs-bindings set up in eclipse, then the key is "option-/", not ctrl-space.
如果您在 eclipse 中设置了 emacs-bindings,那么关键是“option-/”,而不是 ctrl-space。
回答by j.barrio
On Eclipse Oxygen, on MacOS Sierra the shortcut is ctrl-.
在 Eclipse Oxygen 上,在 MacOS Sierra 上,快捷方式是 ctrl-。