'IntelliJ, Alt+Enter doesnt work

When working with IntelliJ on a JavaProject it shows to use alt + enter to import a class for example, but this isnt working anymore.

It worked in the past, but something must have changed,
-the shortcut is still set,
-other shortcut would work
- i cant assign alt+enter manually, although if i reset it to default it gets set to it,

any ideas how to fix my problem?
btw my keyboard layout is german, but i dont think it is the problem because it worked in the past, my os is win 7.

edited: when i am working within the IDE and i e.g. write
Arrays.toString(a);
and didn't import "java.util.Arrays" yet, the IDE says:

" ? java.util.Arrays? Alt+Eingabe"    (Eingabe = Enter in German)

so when i assign a different shortcut it works, but with Alt+Enter it doesnt

thanks in advance for any help.



Solution 1:[1]

It was working earlier but it stopped working due to unknown reason,

One workaround is Try fn+Alt+Enter

Solution 2:[2]

I had the same problem
and it turned out to be the keyboard language in Windows, It wasn't english,
so just make sure you are on English

Solution 3:[3]

On my side, culprit is some VPN software called PulseSecure

fn + Alt+Enter+Shift worked for me (credits @ketankk).

Solution 4:[4]

My problem solved. just try :

alt enter php storm intellij problem not working

LEFT Alt + Enter

LEFT Alt+Enter

Looks like some languages override Right Alt behavior, at least in case of Lithuanian Left Alt is working fine with Lithuanian enabled, Right does not, when switch to English, everything is fine again. Was pulling hair to figure out why out of nowhere it stops working, thanks

Solution 5:[5]

In my case hint is showing Alt + Shift + Enter, but Ctrl+Shift+Enter works for some reason oO

Solution 6:[6]

In my case, I mapped Alt+Enter to a system shortcut (for expanding the current window) and I forgot. So it might not be another program, but your past self-sabotaging you.

Solution 7:[7]

I have the same issue. Alt+Insert not working while I was trying to generate getters/setters for my POJO class. I just added another shortcut for that "Generate" operation. If you are using Intellij Idea, you can do that by following steps:

  1. Go to File -> Settings -> Keymap.
  2. On the search bar appeared, search for "Generate", you will find an entry to which assigned shortcut will be Alt+Insert.
  3. Right click on this entry and select 'Add Keyboard shorcut'.
  4. Now, type your own shortcut that you want. In my case, I used Ctrl+Shift+G.

It worked fine and now I am using my new shortcut for Generate operation.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ketankk
Solution 2 Danny Mor
Solution 3 J. Chomel
Solution 4 saber tabatabaee yazdi
Solution 5 Anton
Solution 6 JoseHdez_2
Solution 7 Ankur Thakur