gpt4 book ai didi

java - Mac OS X 上的 Intellij 默认 Windows 键盘映射

转载 作者:塔克拉玛干 更新时间:2023-11-03 03:51:27 25 4
gpt4 key购买 nike

是否可以在 Mac OS X 上为 Intellij IDEA 使用默认的 Windows 键映射。这不是像 Eclipse Windows 键映射那样的选项吗?

最佳答案

这对我来说也是一种痛苦。我有时在 IntelliJ 的 windows、linux 和 macOS 工作,只是不想在心理上处理不同的布局。

我终于成功地拥有相同的布局,而且我还在除 IntelliJ 之外的所有应用程序交换了键盘上的控制/命令 按钮(我使用的是常规 Windows 键盘) > 这样我就可以在整个系统中使用 ctrl + c/v/a/f/...。

  1. 将 IntelliJ 中的键盘映射更改为“XWin 的默认设置
  2. 已安装允许任何键盘/鼠标更改的 karabiner-elements:https://github.com/tekezo/Karabiner-Elements
  3. 编辑我的/Users/username/.config/karabiner/karabiner.json 并在 profiles > complex_modifications > rules 下的那个 json 中添加我自己的规则:

    {  "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"    }  ]}

关于java - Mac OS X 上的 Intellij 默认 Windows 键盘映射,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35874608/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com