Reputation: 752
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.
Upvotes: 24
Views: 27441
Reputation: 403
I had the same problem while upgrading to a new IDE version. The cause was a plugin error in new IDE version, I resolved disabling/updating that plugin.
Upvotes: 2
Reputation: 21
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:
It worked fine and now I am using my new shortcut for Generate operation.
Upvotes: 2
Reputation: 576
In my case hint is showing Alt + Shift + Enter, but Ctrl+Shift+Enter works for some reason oO
Upvotes: 1
Reputation: 4959
My problem solved. just try :
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
Upvotes: 6
Reputation: 8395
On my side, culprit is some VPN software called PulseSecure
fn
+
Alt+Enter+Shift
worked for me (credits @ketankk).
Upvotes: 2
Reputation: 4161
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.
Upvotes: 0
Reputation: 2664
It was working earlier but it stopped working due to unknown reason,
One workaround is Try fn+Alt+Enter
Upvotes: 10
Reputation: 1263
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
Upvotes: 5
Reputation: 752
"Well, it means IDE doesn't see the shortcut for some reason. Probably it's already used by some other application or the operating system. – CrazyCoder 25 mins ago "
i closed all applications and it turns out that, Facebook GameRoom, running in the background, somehow is the reason the shortcut doesn't work, i have no idea why, but thats the solution
many thanks to CrazyCoder
Upvotes: 30