Skip to content Skip to sidebar Skip to footer

Shortcut Alt+enter Is Not Working In Android Studio

alt + enterfor importing was work normally maybe until I updated Android Studio, my version now is2.3.3 as this screenshot, I can't press alt + enter at all, knowing that I have

Solution 1:

Use LEFT Alt Key + Enter. It works well in Android Studio 3.0.1.

Solution 2:

I encountered the same problem today, this is how I solved it.

  1. Go to File > Settings > Editor > General > Auto Import
  2. Uncheck and Check Show Import Popup
  3. Do Invalidate caches and Restart of Android Studio. (If this option doesn't work, restart your computer

Edit Another solution I've found to work is to uninstall Android Studio and reinstall it.

Solution 3:

Try "the Windows Key + Alt + Enter" if you are using windows.

It feels weird as I am pretty sure my keyboard works fine and android studio settings are alright, but I just see the pop-up suggestion for class import and nothing happens when I press Alt+Enter.

I work on Windows 10 and my Android SDK is on a different hard drive(E:) from the Android Studio installation(C:), not sure if these contribute to the problem.

After some trial and error I accidentally solved the problem by pressing "the Windows Key + Alt + Enter" to conjure the import class menu and could then press Enter again to properly import the suggested class.

Solution 4:

I faced the same problem and was sure that the problem is in Android Studio. But when I reinstalled it I realized that it did not helped. So I decided to test my keyboard. I found that my left Alt is not working with Enter and right Alt somewhy is turning on Ctrl key. That is why Alt+Enter was not working in any combinations. Problem was solved by reinstalling keyboard driver. Hope it will helps somebody.

Solution 5:

  1. In the Android studio Settings/Keymap "shortcut Ctrl+Alt+S"

search for usage of "Alt + Ent" as below image if its not assigned for any action plz go for No. 2

Android studio shortcut


  1. In the Android studio Settings/Editor/Intentions.

Check whatever you want to show Intention in are checked or not as below photo

Intention


  1. Double check no.1 is working fine and you found usage of "Alt + Ent" shortcut

[You can find the solution on official Jet brains website]

Intellij IDEA keyboard shortcuts

Intention actions

Post a Comment for "Shortcut Alt+enter Is Not Working In Android Studio"