slartidan
slartidan

Reputation: 21608

IntelliJ IDEA intention actions on Mac with Windows keyboard

In my Java source code file, there is a return statement, but the method is void:

public void a() {
    return "x";
}

IntelliJ IDEA shows a red line under return "x";.

I now want to use the "Show Intention Actions" action, to fix this issue. By globally searching for that action, I found out, that the shortcut for to do so is ⌥⏎ (on my Mac, using Mac OS X 10.5+ keymap), in words:

Option+Enter

Since I use a Windows keyboard, I expected this shortcut to be for me:

Alt+Enter

However, this does not trigger anything in IntelliJ IDEA.

How do I show the intention actions on a Mac with a Windows keyboard?

Upvotes: 1

Views: 781

Answers (1)

slartidan
slartidan

Reputation: 21608

On Mac, option is only mapped to alt in some input methods. Choosing British input method works on my machine, choosing Unicode Hex Input fails.

Upvotes: 1

Related Questions