Joe Rakhimov
Joe Rakhimov

Reputation: 5083

Android Studio basic auto completion shortcut not working

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

Answers (6)

Ber
Ber

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

Lucas P.
Lucas P.

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.

Android studio Completion Basic keymap settings

Upvotes: 35

Muhammad Ashraf
Muhammad Ashraf

Reputation: 3649

Click on Alt+Enter to make Auto Complete

Upvotes: -1

codingjeremy
codingjeremy

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

Gene
Gene

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

enter image description here

Upvotes: 6

yole
yole

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

Related Questions