How to swap CTRL/CMD for all of my shortcuts?

Viewed 142

I'm using Emacs mode for keymap in PyCharm, except in Emacs I'm used to swaps CMD with CTRL. This is setting is enabled in Emacs with (setq mac-command-modifier 'control)

Is there some way to swap CMD/CTRL keys in my Emacs PyCharm keymap that is faster than manually changing it for every shortcut using GUI? IE, is the settings file stored by PyCharm something I can modify directly?

2 Answers

I'm not sure how you installed PyCharm, but for me on Linux, it's inside ~/pycharm-<version>/lib/resources.jar

Rename the jar to zip and open it. The keymaps folder has the xmls you want to edit.

Honestly it may be easiest to use something like Better Touch Tool to rebind your CMD and CTRL for just PyCharm. This would allow everything else on your machine to function as it ought and still allow for the binding you prefer in PyCharm.

Related