简体   繁体   中英

Shortcuts for Mac Users: Eclipse

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

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 设置

Eclipse 首选项

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM