January 9

IntelliJ IDEA: Eclipse key bindings on OSX

0  comments

With the latest release of IntelliJ IDEA 12 I decided to give it a try. As a heavy eclipse user it’s much easier for me to use the eclipse key map. Stupidly in the eclipse key map that ships with IntelliJ the ctrl-key is used instead of the cmd-key. Windows style copy and paste on the mac sucks.

Luckily Ian run into this issue before and distibuted his key map on github.

For the “go to declaration” there is a cmd + Click key binding that I use a lot in eclipse. Ian didn’t changed this key binding from ctrl to cmd. I forked his code and added this binding.

The next thing I run into was that the right click in a context menu was fishy. I found this entry on Stackoverflow to fix the problem.

I also added or changed the following keys:

Move Caret to Line End: from ctr + -> to cmd + ->
Move Caret to Line End with Selection:
Move Caret to Line Start from ctr + -> to cmd + ->
Move Caret to Line Start with Selection: ctr + < - to cmd + <- Move Caret to Next Word: from cmd + -> to alt + ->
Move Caret to Next Word with Selection: remove shift + alt + ->
Move Caret to Previous Word: cmd + < - to alt + <- Move Caret to Previous Word with Selection: remove shift + alt + <- Navigate Back: from + <- to alt + cmd + <- Navigate Forward: from + -> to alt + cmd + ->

Editor Tabs Next Tab: removed alt+cmd< - Editor Tabs Previous Tab: removed alt+cmd->

Active Tool Window, Resize, Strech to right: remove shift + cmd + ->
Active Tool Window, Resize, Strech to left: shift + cmd + < -

You can find my forked version of the keymap with all the changes in my github repo.


Tags

Eclipse, IDEA, IntelliJ, key map, Mac OS X


You may also like

Blog url changed to https

Format date and time in java with prettytime

Leave a Reply

Your email address will not be published. Required fields are marked *

Information about Data protection

This site uses Akismet to reduce spam. Learn how your comment data is processed.

{"email":"Email address invalid","url":"Website address invalid","required":"Required field missing"}

Subscribe to our newsletter now!