Intellij Idea - how to get rid of thick caret/cursor

Desik picture Desik · Apr 19, 2016 · Viewed 10.5k times · Source

I pressed something in Intellij and my caret shape changed to this. How to revert to the normal thickness? Using Intellij 2016.1.

thick caret

Compare to this, normal thickness should be that of a bold vertical line:

normal caret

Update: On Android Studio 2.1 beta, same machine, same font settings, cursor is visibly thinner.

Answer

LazyOne picture LazyOne · Apr 20, 2016

You can .. but it's not pixel perfect. I mean -- for me the value does not seem to control thickness in pixels but rather some index (which gets applied to some predefined values) -- at least this is my impression on what I see my computer.

In any case:

  1. Help | Find Action...
  2. Search for registry action
  3. Once in Registry window -- look for editor.caret.width entry
  4. Set the new value (for me the default was 2) -- make sure that field went bold (move to another entry) to ensure that new value was accepted.
  5. Restart IDE (this option requires it)

UPDATE (2017/04/06):

You may also try ThinCaret plugin:

Makes your editor caret 1 pixel thin (for retina users)