Basic code completion in IntelliJ on Mac

泪湿孤枕 提交于 2019-12-04 15:33:52

问题


There is very important shortcut for Basic Code Completion in IntelliJ IDE which assumed to be invoked as ctrl+space shortcut on Mac. The problem is this shortcut is system one and used to invoke "Spotlight" in Lion Mac OS. How you guys invoke it then?


回答1:


You either disable/change Spotlight shortcut in the system settings or you change the Basic completion shortcut in IDEA Preferences | Keymap.




回答2:


I think that the question is motley asking to what key combination do you change it, and why JetBrains haven’t implemented the update to the mac keymap by themselves.

Anyways, I’ve swapped the Ctrl+Space with Alt+Space which doesn’t seem to collide with any MacOSX system key shortcut.




回答3:


Alternatively, you can use Ctrl + Shift + Space for "SmartType" to avoid collision with Spotlight.




回答4:


You can override the OSX spotlight shortcut in IntelliJ IDEA/Services/Services Preferences. More info: here.




回答5:


I dont know if this helps but here is a list of the default key mappings http://www.jetbrains.com/idea/docs/IntelliJIDEA_ReferenceCard_Mac.pdf and you can change them from the menu IDE Settings -> Keymap




回答6:


Actually, spotlight is started by COMMAND-space and not by CTRL-space ...



来源:https://stackoverflow.com/questions/11085913/basic-code-completion-in-intellij-on-mac

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!