Following @statop's idea I used Karabiner-Elements and remapped Ctrl+Left Click to ⌘+Left Click.
To do that copy the mapping JSON snippet shown below to ~/.config/karabiner/assets/complex_modifications/foo.json
:
{
"title": "Ctrl+LClick to Cmd+LClick",
"rules": [
{
"description": "Ctrl+LClick to Cmd+LClick",
"manipulators": [
{
"type": "basic",
"from": {
"pointing_button": "button1",
"modifiers": {
"mandatory": [
"left_control"
],
"optional": [
"caps_lock"
]
}
},
"to": [
{
"pointing_button": "button1",
"modifiers": [
"left_command"
]
}
]
}
]
}
]
}
then in Karabiner go to:
Preferences... > Complex modifications > Add Rule
and you should see Ctrl+LClick to Cmd+LClick
in the list. Enable the rule. Now configure your IDE to use ⌘+Left Click where you would normally use Ctrl+Left Click.
Using this opportunity I also swapped round Fn with ^, as on my Mac Fn is where ^ should be. To do that in Karabiner go to:
Preferences... > Simple modifications > Add item
and create two mappings:
- from
fn
to left_control
, and
- from
left_control
to fn
.
Carry on remapping and soon enough your Mac will become a usable machine!