Reputation: 5083
I have checked Preferences->Editor->Code completion. Basic code completion is turned on. Shortcut is ^Space. When I click [control]+[space], it is opening spotlight search instead of code completion. How to solve this problem?
Upvotes: 34
Views: 26381
Reputation: 41793
On MacOS Ventura (13.0), Ctrl-Space is assigned to switching input sources.
This needs to be disabled or changed to some other keys in System Settings... Keyboard > Keyboard Shortcuts > Input Sources if you want to keep using the same short cut in Android Studio.
Upvotes: 5
Reputation: 4532
As an alternative to yole's answer: Since I did not want to modify my system's shortcuts to have them the same across my Macs, I just edited the shortcut in Android Studio (Android Studio -> Settings -> Keymap and change Code Completion -> Basic).
I've used Option+Space which is not assigned to any global shortcut.
P.S.: This is indeed a nuisance coming from years of Windows usage.
Upvotes: 35
Reputation: 5741
The shortcut is different now but is still working, you just need to click
ctrl + space
. The ^
you see listed in your preferences is the symbol for ctrl
on a mac.
Upvotes: -2
Reputation: 11267
I'm running Android Studio on Windows 10. File -> Settings -> Editor -> General -> Code Completion
The default hotkeys for Auto-Complete are:
1) Control + Space + Spacebar
2) Control+ Spacebar
Upvotes: 6
Reputation: 97128
You need to change the Mac OS X keyboard shortcuts (Preferences | Keyboard | Shortcuts | Spotlight) and either disable the "Show Spotlight search" shortcut or reassign it to a different key.
Upvotes: 35