Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellij-idea: auto-repetition of letter keys

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?

like image 738
gefei Avatar asked Feb 27 '13 08:02

gefei


People also ask

How do you repeat keys on a keyboard?

Click Launch, then choose Preferences -> Accessibility -> Keyboard. Click on the Basic tab. Select the Enable Repeat Keys option. Use the Delay slider or spin box to specify the duration for which you must press a key before the keyboard interprets the action as a repeat key.

What does Ctrl Alt l do in IntelliJ?

If you choose Code | Reformat Code from the main menu or press Ctrl+Alt+L , IntelliJ IDEA tries to reformat the source code of the specified scope automatically. For more details on how to reformat, or exclude files from formatting, refer toReformat code.

What does Ctrl Shift F do in IntelliJ?

In past IntelliJ versions, ctrl+shift+f would search the entire project (no matter whether you had at some point used "find in path").


2 Answers

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

like image 167
danslee Avatar answered Oct 05 '22 15:10

danslee


It's a system preference not specific to Intellij IDEA:

defaults write -g ApplePressAndHoldEnabled -bool false  
like image 21
CrazyCoder Avatar answered Oct 05 '22 15:10

CrazyCoder