osx-and-sublime-like-keymap-in-intellij
osx-and-sublime-like-keymap-in-intellij copied to clipboard
An IntelliJ keymap that restores OSX defaults and uses sublime keybindings wherever possible
OSX and Sublime Text like keymap for IntelliJ
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.
Installation instructions
-
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
Removed IntelliJ OSX defaults
-
cmd + down
Jump to source -
cmd + alt + up
Navigate to previous occurrence -
cmd + alt + down
Navigate to next occurrence -
cmd + alt + left
Navigate back -
cmd + alt + right
Navigate forward -
ctrl + G
Add selection to next occurrence -
cmd + D
Duplicate line or selection -
cmd + backspace
Delete line -
cmd + shift + R
Replace in path -
cmd + alt + F
Extract field (refactor) -
cmd + P
Parameter info -
cmd + alt + E
Explain Scala code, Browse console history -
cmd + B
Go to definition -
ctrl + cmd + up
Navigate to related symbol -
cmd + K
Check In Project (VCS) -
alt + shift + button1
Add or Remove Caret -
cmd + button1
Go to Declaration -
alt + button1
Quick Evaluate Expression
OSX defaults restored
-
cmd + up
Caret to top of file -
cmd + down
Caret to bottom of file -
cmd + backspace
Delete to line start
Sublime defaults added
-
cmd + alt + left
Select Previous Tab -
cmd + alt + right
Select Next Tab -
cmd + D
Add selection for next occurrence -
cmd + K
Find next /Move to next occurrence -
ctrl + cmd + G
Select all occurrences -
cmd + shift + L
Split selection into lines [^issue-split-selection-into-lines] -
cmd + shift + D
Duplicate line or selection -
ctrl + shift + K
Delete line -
cmd + alt + F
Replace -
cmd + shift + R
Navigate to Symbol -
cmd + P
Navigate to file -
ctrl + cmd + up
Move line up -
ctrl + cmd + down
Move line down -
cmd + button1
Add or Remove Caret -
ctrl + cmd + P
Manage projects
Custom stuff
-
cmd + alt + up
Navigate back -
cmd + alt + down
Jump to source -
cmd + alt + E
Extract field (refactor) -
cmd + B
Run -
cmd + B
Rerun -
alt + shift + button1
Quick Evaluate Expression -
alt + button1
Go to Declaration -
cmd + shift + P
Parameter info
Known issues
[^issue-split-selection-into-lines]: Split selection into lines (cmd + shift + L
) actually toggles the 'Column Selection Mode' which means you have to deactivate it after usage.