simao
simao

Reputation: 15559

Intellij-idea: Using Eclipse Keymap on Mac OS X

When using IntelliJ with the Eclipse Keymap, all the shortcuts are set to use Ctrl, instead of Command. Just like Eclipse on Windows.

Is there a way to use the same keys as the Mac version of Eclipse?

Upvotes: 6

Views: 8019

Answers (4)

jdz
jdz

Reputation: 31

You've already got it installed but just don't know it. There is a trick to this.

In IntelliJ Preferences, Under Keymap: Click the dropdown Menu. Secretly, JetBrains designed it as a scrolling menu which lacks a scroll bar until you actually scroll it (deceptive). Hover your mouse over the menu and scroll it down to find an Eclipse (Mac) variant, among others. On my Mac, i cannot even use my keyboard to scroll this menu, it must be the mouse.

Scrollable Keymap List Has More Options Underneath

Upvotes: 0

GabrielKnight
GabrielKnight

Reputation: 111

This was actually already answered in https://stackoverflow.com/a/9115464/223855. You can find a link to an "Eclipse on Mac" keymap xml file there.

Upvotes: 3

user1532645
user1532645

Reputation: 11

If you go Preferences->(IDE Settings) Keymap, from here you should see a drop down for Keymaps which will allow you to select "Mac OS X" to switch over to using Command instead. At least this is an option for IntelliJ 11.1.2.

Upvotes: 1

osundblad
osundblad

Reputation: 2681

Just make a copy of the Ecplipse key map (in IDEA) then exit IDEA. Then modify the newly created xml file in your config\keymaps directory with search replace in a text editor replacing "control" whatever Command's text string is, "command"? (I don't have a mac).

You can get commands text by modifying one keystroke in the copied keymap to use command.

Hope it helps.

Upvotes: 0

Related Questions