January 9, 2013

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 alt + -> Move Caret to Next Word with Selection: remove shift + alt + -> Move Caret to Previous Word: cmd + to alt + cmd + -> Editor Tabs Next 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

I just changed the url of this blog to https://jensjaeger.com. TLS encryption is now the default for all request to this page. It might be possible that some image links on some articles are hard coded http. If you find such an error it would be nice if you leave me comment so i can

Read More

Format date and time in java with prettytime

Prettytime is a nice java library to format a java Date()s in a nice humanized ago format, like: moments ago 2 minutes ago 13 hours ago 7 months ago 2 years ago Prettytime is localized in over 30 languages. It’s super simple to use Add the dependency to your maven pom: org.ocpsoft.prettytime prettytime 3.2.7.Final or

Read More