Intellij 默认窗口键盘映射在 Mac OS X 上
2022-09-02 13:09:35
是否可以在Mac OS X上为Intellij IDEA提供默认的Windows密钥映射。它不是像Eclipse Windows Key Map那样的选项吗?
是否可以在Mac OS X上为Intellij IDEA提供默认的Windows密钥映射。它不是像Eclipse Windows Key Map那样的选项吗?
这对我来说也是一种痛苦。我有时在IntelliJ的Windows,Linux和macOS工作,只是不想在精神上处理不同的布局。
我最终成功地拥有了相同的布局,我还在除IntelliJ之外的所有应用程序中交换了键盘上的控制/命令按钮(我使用的是常规Windows键盘),因此我可以使用ctrl + c / v / a / f / ...通过整个系统。
编辑了我的 /Users/username/.config/karabiner/karabiner.json,并在配置文件> complex_modifications >规则下添加了我自己的 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"
}
]
}