'Intellij run shortcut (mac)

Run is ^R (CTRL R), but it doesn't work on a mac.

Is there anyway I can re-write the shortcut to use OPTION R or something?



Solution 1:[1]

In default, Run is not Ctrl + R in Windows/Linux (it's Shift + F10), but it is ^R in Mac.

Maybe you have another keymapping, check it under File -> Settings -> Keymap -> Main menu -> Run -> Run.

Solution 2:[2]

You can change the binding at Preferences -> Keymap -> Main menu -> Run -> Run

As for why ^R doesn't work, are you by any chance using the IdeaVim plugin? It grabs ^R for Redo (the usual vim ^R binding), and -- unfortunately -- no indication of that appears in the IntelliJ keymap.

Solution 3:[3]

Why don't you use the Keymap option in intellij-idea to figure out what shortcuts you really need?

enter image description here

Solution 4:[4]

It works for me, I am using equipment below and if I press control + r, then I can see how code is executed and its result:

enter image description here

enter image description here

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Geno Chen
Solution 2
Solution 3 Sandeepa
Solution 4