On the Mac, option+enter suddenly stopped working!?


I am surely missing something.

  1. I write List<String> ...
  2. At this point the IDE wants me to choose from a list of List declarations :-). So, it wants me to press option+enter to show that dropdown.
  3. This is what it looks like (see below).
  4. I press the option key and enter key simultaneously, and nothing happens!

This is really annoying. I have used this thousands of times. I did not change my keyboard settings on Mac. 

What must be going on?

Comment actions Permalink

Alright. As I was typing my question above, I suddenly looked at the "Keyboard type" I was using. Since I use multiple keyboards, it looks like this:

And when I was using the U+ keyboard, this problem showed up! U+, btw, is very useful to enter Unicode codepoints on the Mac (using the option key). 

When I switched to the U.S. keyboard as shown above, things got back to normal!

Wow. I reinstalled IDEA for this :-( -- should have known better. Sharing here in the hope that it might help others.

Comment actions Permalink

My problem was in java. I was writing code in the class itself and not in a method. so there was other errors preventing option Enter to suggest creating a method


Please sign in to leave a comment.