A keymap, based on the 'default' Mac OS X 10.5 keymap from IntelliJ, which overrides things back to 'normal' OS X keymaps, like top of file with cmd + up
, delete everything to the beginning of the line with cmd + backspace
etc. It also set's the keybindings to be comparible with Sublime Text, with some small exceptions.
-
If you have IntelliJ running, close it (completely)
-
Clone this repository
git clone [email protected]:peterklijn/osx-and-sublime-like-keymap-in-intellij.git
-
Symlink the XML file you just cloned to this directory (create the
keymaps
folder if it doesn't exist)ln -s \ ~/path/to/osx-and-sublime-like-keymap-in-intellij/osx-and-sublime-like-keymap.xml \ ~/Library/Application\ Support/JetBrains/<product><version>/keymaps/.
-
Start IntelliJ, go to the preferences (
cmd + ,
), go to Keymap, select 'OSX and Sublime Text' in the list of available keymaps.
Tested in IntelliJ IDEA Community 2016.2.1
cmd + down
Jump to sourcecmd + alt + up
Navigate to previous occurrencecmd + alt + down
Navigate to next occurrencecmd + alt + left
Navigate backcmd + alt + right
Navigate forwardctrl + G
Add selection to next occurrencecmd + D
Duplicate line or selectioncmd + backspace
Delete linecmd + shift + R
Replace in pathcmd + alt + F
Extract field (refactor)cmd + P
Parameter infocmd + alt + E
Explain Scala code, Browse console historycmd + B
Go to definitionctrl + cmd + up
Navigate to related symbolcmd + K
Check In Project (VCS)alt + shift + button1
Add or Remove Caretcmd + button1
Go to Declarationalt + button1
Quick Evaluate Expression
cmd + up
Caret to top of filecmd + down
Caret to bottom of filecmd + backspace
Delete to line start
cmd + alt + left
Select Previous Tabcmd + alt + right
Select Next Tabcmd + D
Add selection for next occurrencecmd + K
Find next /Move to next occurrencectrl + cmd + G
Select all occurrencescmd + shift + L
Split selection into lines 1cmd + shift + D
Duplicate line or selectionctrl + shift + K
Delete linecmd + alt + F
Replacecmd + shift + R
Navigate to Symbolcmd + P
Navigate to filectrl + cmd + up
Move line upctrl + cmd + down
Move line downcmd + button1
Add or Remove Caretctrl + cmd + P
Manage projects
cmd + alt + up
Navigate backcmd + alt + down
Jump to sourcecmd + alt + E
Extract field (refactor)cmd + B
Runcmd + B
Rerunalt + shift + button1
Quick Evaluate Expressionalt + button1
Go to Declarationcmd + shift + P
Parameter info
Footnotes
-
Split selection into lines (
cmd + shift + L
) actually toggles the 'Column Selection Mode' which means you have to deactivate it after usage. ↩