Intellij-idea: auto-repetition of letter keys

gefei picture gefei · Feb 27, 2013 · Viewed 9k times · Source

Using Intellij-Idea 12 on OS X, I have a strange problem: when I keep a letter ([a-z]) key pressed in the editor, the key stroke does not repeat. This is unfortunately a problem since I would like to use the vim plug-in, and to use the keys h,j,k,l to move the cursor around.

Other, non-letter keys do produce repetition when kept pressed. On Ubuntu 12.04 I don't encounter this problem either.

Is this any option thing? Anyone know where to set preferences of key stroke repetition?

Answer

danslee picture danslee · Jan 17, 2015

You can change also be more specific and change the behavior for only IntelliJ with the following command. The -g option in the above solution changes it for all applications.

defaults write com.jetbrains.intellij ApplePressAndHoldEnabled -bool false

For the 14.x community edition, you may need to use a different URI:

defaults write com.jetbrains.intellij.ce ApplePressAndHoldEnabled -bool false

This works for MacOSX 10.10 Yosemite and IntelliJ 13.1.6