How to make Windows key the IntelliJ IDEA Command/Meta key under Windows?

后端 未结 1 1129
余生分开走
余生分开走 2020-12-23 10:26

I\'m using IntelliJ IDEA 14 under OS X, Windows and Ubuntu for several months, found that the keymap Mac OS X 10.5+ is more suitable for me and want to keep same experience

相关标签:
1条回答
  • 2020-12-23 10:50

    Here's a workaround that works partly. In IDEA do the following:

    1. Help -> Edit Custom Properties...
      • In the file that opens, add this on a new line: keymap.windows.as.meta=true
    2. Choose your Mac keymap under File -> Settings... -> Keymap. For example, "Mac OS X 10.5+".

    If you use a Windows keyboard and you want the same layout as with your Mac keyboard you can remap

    • the left Windows key to become the left Alt key and
    • the left Alt to become the left Windows key, that would then be interpreted as the Mac's Command (Cmd/Meta) key.

    To do so, you could install AutoHotkey and run it with the following script, by putting these two lines in a .ahk file:

    LAlt::LWin
    LWin::LAlt
    

    To read more about the problem(s) with both the Windows key and this workaround see the comments of IDEA-144702.

    0 讨论(0)
提交回复
热议问题