DEV Community

Cover image for Settling the editors key bindings war
suntong
suntong

Posted on • Edited on

Settling the editors key bindings war

This SO question, Key bindings war in my brain, best summarized the problem I'm facing and am trying to solve:

How many key bindings are there in your brain? I personally use Intellij Idea as my primary IDE for development, but sometimes switch to Eclipse and Netbeans a bit, and sometimes I use Jedit, Notepad++, Emacs, Vim.

I am always trying to find a perfect key bindings that I can use crossing all the editors. What's your idea to solve this problem?

The question was asked over 10 years ago, and there is still no perfect solution to the problem. What's worse is that there is now another big player in the field now -- we need to add Microsoft Code to the above long list as well now.

There may be no perfect solution for anyone, but for me, having to constantly switch between Emacs, Jed, Goland, IntelliJ Idea, and Microsoft Code, I'm going to let them all to use the same keyboard mapping and bindings.

The most difficult part is not Goland, IntelliJ Idea, and Microsoft Code, contrary to people might think, but Emacs itself, as Emacs itself has no official standard for key mapping and bindings. For example, the other day I just realized that I have three different way for comment-or-uncomment: C-c ;, M-#, and M-;. Same for indents lines and/or region, I have defined at least three different ways as well.

Both Microsoft Code and IntelliJ has Emacs compatible mode which use Emacs key bindings. This post just collect them into a single place and put them side by side (if dev.to is restricting the blog width so you cannot see the full table width, you can also view it here):

PS.

If you are interested in how these key bindings are collected, check out

Top comments (0)