Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij Default windows keymap on Mac OS X

Is it possible to have the default windows key map for Intellij IDEA on Mac OS X. It is not an option like the Eclipse Windows Key Map?

like image 305
perkss Avatar asked Mar 08 '16 17:03

perkss


2 Answers

That was a pain for me aswell. Iam working at sometimes at IntelliJ in windows, linux and macOS and just don't want to handle the different layouts mentally.

Ive finally succeeded at having the same layout and I also swapped the control/command buttons on the keyboard (i am using a regular windows keyboard) in all applications except IntelliJ so I can use ctrl + c/v/a/f/... through the whole system.

  1. changed the keymap in IntelliJ to "Default for XWin"
  2. installed karabiner-elements which allows any keyboard/mouse changes: https://github.com/tekezo/Karabiner-Elements
  3. edited my /Users/username/.config/karabiner/karabiner.json and added my own rule in that json under profiles > complex_modifications > rules:

    {
      "description": "ctrl/command swap",
      "manipulators": [
        {
          "conditions": [
            {
              "bundle_identifiers": [
                "^com\\.jetbrains\\.intellij$"
              ],
              "type": "frontmost_application_unless"
            }
          ],
          "from": {
            "key_code": "left_control"
          },
          "to": [
            {
              "key_code": "left_command"
            }
          ],
          "type": "basic"
        },
        {
          "conditions": [
            {
              "bundle_identifiers": [
                "^com\\.jetbrains\\.intellij$"
              ],
              "type": "frontmost_application_unless"
            }
          ],
          "from": {
            "key_code": "left_command"
          },
          "to": [
            {
              "key_code": "left_control"
            }
          ],
          "type": "basic"
        }
      ]
    }
    
like image 179
Mariusz Avatar answered Sep 21 '22 07:09

Mariusz


yes, it is possible. go to Preferences -> keymap -> keymaps, and select your default

enter image description here

like image 25
Ofer Segev Avatar answered Sep 19 '22 07:09

Ofer Segev