Gotti92
Gotti92

Reputation: 752

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.

Upvotes: 24

Views: 27441

Answers (10)

Rita
Rita

Reputation: 1

I've had same problem, it turned out my keyboard was on mac layout.

Upvotes: 0

Marco Luly
Marco Luly

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

Ankur Thakur
Ankur Thakur

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:

  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.

Upvotes: 2

Anton
Anton

Reputation: 576

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

Upvotes: 1

saber tabatabaee yazdi
saber tabatabaee yazdi

Reputation: 4959

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

Upvotes: 6

J. Chomel
J. Chomel

Reputation: 8395

On my side, culprit is some VPN software called PulseSecure

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

Upvotes: 2

JoseHdez_2
JoseHdez_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

ketankk
ketankk

Reputation: 2664

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

One workaround is Try fn+Alt+Enter

Upvotes: 10

Danny Mor
Danny Mor

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

Gotti92
Gotti92

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

Related Questions