Reality-Loop

IntelliJ IDEA Caret Placement

May 25, 2008 | 0 Minute Read
This post was originally posted on my old blog.

One of the most annoying behaviors in IntelliJ IDEA is the placement of the caret in the text editor. When you click in the editor, the cursor is paced exactly at the position where you pointed the mouse, even if there is no text anywhere nearby!
I cant see the benefit or a sensible use-case for this behavior...

Picture 2.png


In every other graphical text editor I know of, the cursor jumps to the end of the text on the respective line.

Now I finally found the setting that lets IntelliJ behave like the other text editors I know:
Under Settings->Editor->Behavior switch off "Allow placement of caret after end of line" (in the box "Virtual Space").

Picture 1.png


I think this should be the default , new users probably expect this behavior.