Desik
Desik

Reputation: 635

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

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.

Upvotes: 6

Views: 27486

Answers (7)

Ix_chel
Ix_chel

Reputation: 1

  • For German keyboard -> Einfg
  • For English keyboard -> Insert

Upvotes: 0

Siddharth Narayanan
Siddharth Narayanan

Reputation: 11

To remove the block caret in CLion by JetBrains, click the "Insert" key on your keyboard. This will toggle the block caret on and off. Do not wrap your head around trying to understand how the block caret works. This also works for all JetBrains IDEs such as Clion, PyCharm, Fleet, etc.🤠

Upvotes: 1

Chikwado
Chikwado

Reputation: 621

If you got here because of the thick cursor (block cursor) that behaves differently than the normal thin one. Just press the insert (Ins) button once and you are good to go.

Upvotes: 7

Abhishek Sengupta
Abhishek Sengupta

Reputation: 3291

Please check the Picture for solution.

enter image description here

Upvotes: 5

Laban Bwire
Laban Bwire

Reputation: 93

Just create your own shortcut to toggle between Insert and Overwrite mode Go to the Keymaps section of the Preferences and add your own Keyboard shortcut if you are using a Mac. Windows users can just enable/disable Insert mode on their keyboard.

Upvotes: 1

LazyOne
LazyOne

Reputation: 165088

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)

Upvotes: 13

leeor
leeor

Reputation: 17761

You can change it under Settings -> Editor -> General -> Appearance -> Use Block caret

Other caret settings are under Settings -> Editor -> Colors & Fonts -> General. Then if you scroll down to the editor section on the right, there is a caret item in the list with font/color settings.

Upvotes: 8

Related Questions