Intellij show intention actions [Alt + Enter] doesn't work

Viewed 2355

The problem occurred after I had added Groovy Unit Testing .jar to my project (it is sole activity I suppose which could 'damage' my Intellij but it is quite likely that the reason is something else because the problem is global - it appears in all projects).

For example I get message like this:

enter image description here

but after I press Alt+Enter nothing happen.

If I append another keyboard shortcut for "show intention actions" it doesn't work either. However if I append Alt+Enter with another action then that another action works properly using this shortcut.

It is also interesting that shortcut Alt+Enter is reserved not only for action "show intention actions", but if I remove another associations it still doesn't work.

Every intentions in Intellij are enabled and power save mode is disabled.

I have read IntelliJ, Alt+Enter doesnt work Auto errors detection in IntelliJ IDEA but it doesn't solve my problem.

5 Answers

In my case i just try to use left alt:

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

I hava same problem that can not auto import package by ALT+ENTER in MacOS. solved by next step:

  1. Preferences --> Editor --> Intentions
  2. search Refactorings
  3. enable introduce local variable
Related