Mac用户的快捷方式:Eclipse

发布于 2025-02-03 02:04:57 字数 103 浏览 5 评论 0原文

我想使用快捷方式来自动完成系统。您知道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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

一生独一 2025-02-10 02:04:57

除非您做了一些奇怪的事情,否则聚光灯搜索默认为整个系统中的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".

macOS Settings

Eclipse Preferences

红墙和绿瓦 2025-02-10 02:04:57

如果对某人有用:我将关键组合停用“选择先前的输入源”,可以在系统首选项中找到 - >键盘 - >快捷方式 - >输入来源。如果您需要此快捷方式,则可以轻松地在同一窗口中分配另一个密钥组合。

停用此默认密钥组合后,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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文