How to remap keys in the editor

Hi,

I'd like to know how to remap shift+space to type an underscore.

In Vim that was easy, just 'imap <S-Space> _' and done. On Mac OS X was slightly complicated, I had to mess with DefaultKeyBinding.dict under ~/Library/KeyBindings/. But now I have an underscore after typing shit+space everywhere, awesome. Then I open up PyCharm certain that my mac foo would save me, sigh.

Google foo didn't help too. So, I'd appreciate if someone could give me a help figuring this one out.

Thanks!
0
4 comments
I'm afraid it's not possible. You can only customize shortcuts for actions listed in File | Settings | Keymap. You can also define Live Templates for pasting code fragments by typing just a few characters, like "super" + <Tab>, see File | Settings | Live Templates.
0
Avatar
Permanently deleted user
I'm afraid your suggested solutions can't fulfill my requirements. The reason why I remaped shift+space to _ was to make typing Python scripts a little more comfortable. Oh well, that's a bummer! Do you know where I can fill a bug report?

Thanks!
0
Feel free to file a feature request in the issue tracker of IntelliJ platform.
0
Avatar
Permanently deleted user
Greetings,

Did you investigate KeyRemap4Macbook?  I use it to do some really cool stuff with Slate and my (formerly underutilized) CapsLock key.  I think it could handle this systemwide for you easily.
0

Please sign in to leave a comment.