Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use Mac OSX Keymap on Windows for WebStorm or IntelliJ IDEA?

I use WebStorm on both my Mac and Windows for work purposes. I would like to know if it is possible to use the MAC OSX keymap on Windows.

On windows if you load the MAC OSX keymap the mappings don't seem to line up correctly. For instance I see the character Meta being used, however Windows doesn't seem to properly map that character.

I also would like to note I am using a Mac keyboard on the Windows PC.

like image 202
Ryan Watts Avatar asked Feb 23 '17 17:02

Ryan Watts


People also ask

How do I access keymap in IntelliJ?

To view the keymap configuration, open the Settings/Preferences dialog Ctrl+Alt+S and select Keymap. IntelliJ IDEA automatically suggests a predefined keymap based on your environment.

Is IntelliJ only for Mac?

IntelliJ IDEA is a cross-platform IDE that provides consistent experience on the Windows, macOS, and Linux operating systems.

What does Ctrl Alt l do in IntelliJ?

We can easily format the current file to the project's standards using ⌥⌘L (MacOS), or Ctrl+Alt+L (Windows/Linux). This can be set to either just format the lines that have changed in the file, or the whole file.


1 Answers

How does Cmd (Meta) key map to your Windows keys?

You can get the full Mac keymap XML file and replace meta with whatever key it is on Windows. Some keys may not work or you may get conflicting mappings.

There is no easy and straightforward way that will work out of the box.

On Mac keymap is using Alt, Ctrl, Meta and Shift modifiers. This cannot be directly mapped to only 3 modifiers you have on Windows (Alt, Ctrl, Shift). You can't use Win as the modifier by default.

Also, a lot of the combinations with Win would be already taken by the OS (and the only way to disable these default mappings is via registry modification).

You are welcome to give it a try as there is a workaround to make Win work as a modifier in IntelliJ IDEA.

like image 50
CrazyCoder Avatar answered Sep 24 '22 13:09

CrazyCoder