MacOS-specific configuration

For MacOS, you need to do a few additional things to make IntelliJ keybindings work correctly.

(MacOS) Enable function keys

On Mac OS, function keys are disabled by default. Go to System Preferences > Keyboard, then check “Use all F1, F2 etc. keys as standard function keys”.

(MacOS) Disable system keyboard bindings

By default, you’ll see that some keyboard bindings (such as ctrl-arrow) have no effect. This is because they are bound by default to other MacOS tools (such as Mission Control). To get them to work in IntelliJ, you must unbind their system-level binding.

To do this, go to System Preferences > Keyboard > Shortcuts. Then click through the various tools (such as Mission Control) and disable their shortcuts if they conflict with IntelliJ. I just disable all of them except for the screen capture shortcuts.

(MacOS) Home and End key bindings

The MacOS laptop keyboard does not have Home or End keys. Here are their equivalents:

Thus, “goto beginning of line” is fn + left arrow, and “goto end of line” is fn + right arrow. To select the text while moving to the beginning or ending of line, add the shift key.

(MacOS) Delete and Backspace key bindings

The MacOS laptop keyboard has only a delete key, which is equivalent to the Windows backspace key. However, IntelliJ bindings use both the Delete and Backspace keys. Here are their equivalents:

Thus, “Delete forward word” is documented as “option + delete”, but on MacOS you use “fn + option + delete.

(MacOS) Understand MacOS keyboard symbology

The MacOS keyboard command reference uses strange symbols to denote various keys like command, option, and shift. To learn the symbol meanings, see MacOS Keyboard symbols.