Android Studio 4.0 shortcuts changed

For Mac users:

I went to:

~/Library/Preferences/Android Studio 4.0/options

and deleted keymap.xml, which I noticed was not present on the previous version folder.

It seems to have the shortcuts working as expected.


It happened to me too after upgrading to Android Studio 4.0, it was fixed after I went to Android Studio > Preferences > Keymap then choice MacOS: enter image description here


Method 1:

Go to this location :

C:\Users\<user_name>\.AndroidStudio3.0\config\keymaps 

And copy the file present inside that (Usually Default Proper Redo.xml) and paste it inside

C:\Users\<user_name>\.AndroidStudio4.0\config\keymaps 

It will bring back all old shortcuts or alternatively

Method 2:

go to settings and search for keymap this window will come up

enter image description here

and search for the keystroke you want or navigate around those

enter image description here

Right-click on the shortcut you want to change and a window will come up just press the new keystroke that you want to assign

enter image description here

If the same keystroke is applied to some other actions it will show a dailog just confirm it by removing old keystrokes ...

You can relate to MacOS ...


Fixed, it happen because Android Studio 4.0 by default use Intellij Keymap, fixed by change back to MacOs keymap. Android Studio > Preferences > Keymap > macOS