Mac用户的快捷方式:Eclipse
我想使用快捷方式来自动完成系统。您知道Mac用户是否有另一种方法?
Eclipse中的快捷方式为:(写) sysout ,然后按Ctrl+空间
I want to use a shortcut to autocomplete System.out.print in Java, I read that I should use Ctrl+Space, but I have a mac and when I do Ctrl+Space it shows Spotlight Search, do you know if there is another way for mac users?
The shortcut in Eclipse is: (Write) sysout and press Ctrl+Space
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
除非您做了一些奇怪的事情,否则聚光灯搜索默认为整个系统中的CMD+空间,这就是为什么内容辅助eclipse默认为Ctrl+Space的原因,就像其他OSS一样。您可以通过选择“ content Assist”的名称搜索“ content Assist”,从系统设置的键盘和eclipse的键偏好页来调和键盘;快捷面板。
Unless you've done something strange, Spotlight Search defaults to Cmd+Space across the entire system and is why Content Assist in Eclipse defaults to Ctrl+Space, just like on other OSes. You can reconcile the key mappings from the system Settings' Keyboard>Shortcuts panel, by choosing Spotlight there, and Eclipse's Keys preference page, by searching by name for "Content Assist".
如果对某人有用:我将关键组合停用“选择先前的输入源”,可以在系统首选项中找到 - >键盘 - >快捷方式 - >输入来源。如果您需要此快捷方式,则可以轻松地在同一窗口中分配另一个密钥组合。
停用此默认密钥组合后,Eclipse中的ctrl + Space或 ^空间自动完成“ Sout”的密钥组合“ sout”。
macos中键盘设置的屏幕截图
If it's useful to someone: I deactivated the key combination "Select previous input source", that can be found in System Preferences -> Keyboard -> Shortcuts -> Input Sources. Another key combination can be easily assigned in the same window, if you need a shortcut for this.
After deactivating this default key combination, the key combination of ctrl + Space or ^Space autocompletes "sout" to "System.out.println" in Eclipse.
Screenshot of keyboard settings in macOS