简体   繁体   中英

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.

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.

在 Windows 上,转到file > settings > keymap然后在keymaps下拉列表中选择defaultmeta (又名cmd )键将被ctrl替换。

There is a third party plugin by samvtrran that solve that: macOS For All

Here is the plugin description:

A keymap for Windows and Linux (and macOS if you really want!) that rebinds common macOS 10.5+ shortcuts to non-Command keys. Some shortcuts aren't 1:1 replacements of modifier keys, so please check the key updates table.

If you notice any conflicting shortcuts or have a suggestion for a new keybinding, please open an issue on GitHub.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM