Geertjan's Blog

  • August 30, 2009

Bye Blinking Cursor

Geertjan Wielenga
Product Manager
Life without a blinking cursor is much better, more peaceful, surprisingly calming. I never considered such a thing before reading the comments here. I found an old thread on the dev alias, by Emilian Bold (here), and now my cursor doesn't blink at all anymore.

Here's the whole module, with all the code (i.e., set blink rate per editor type) in its simplest implementation (i.e., without Options window extension):

Hoping to see this functionality (within the Options window) as a standard part of NetBeans IDE.

Join the discussion

Comments ( 7 )
  • Chuk Lee Monday, August 31, 2009

    Thank you. Is there any settings to make the cursor a solid block instead of a line?

  • Ulrich Monday, December 28, 2009

    Hey Geertjan, glad I got you thinking about that blinking madness. ;-)

    I just tried NB 6.8, and for the record: it's easy to turn the blinking off for Java files by editing .netbeans/6.8/config/Editors/text/x-java/Preferences/org-netbeans-modules-editor-settings-CustomPreferences.xml (at least on Linux; on Windows it's probably somewhere in the Application Data folder)) and adding:

    <entry name="caret-blink-rate" xml:space="preserve">



    Of course it would be nicer if NB could read the system setting on your operating system, or if there was an option to explicitly set the blink rate in the appearances options.

  • tirengarfio Thursday, January 28, 2010


    i followed your tutorial about the cursor of Netbeans to reduce the rate of blinking but it didnt work for me.

    Should it work in 6.8?



  • jacky Friday, March 12, 2010

    also i followed your tutorial,but it didn't work for netBeans 6.8, do you have any ideas?

  • jacky Friday, March 12, 2010

    also i followed your tutorial in the x-java/org-netbeans-modules-editor-settings-CustomPreferences.xml, it works fine,but it didn't work in other language for example x-c,x-php5, do you have any ideas?

  • Bob Saturday, November 20, 2010

    Doesn't work for 6.9. Big surprise. Why is it that no Java applications can respect native UI settings? It's no wonder Java is dying or that they're effectively throwing it off Mac.

  • fangirl Friday, October 24, 2014

    Is it possible to alter the width of the caret also?

Please enter your name.Please provide a valid email address.Please enter a comment.CAPTCHA challenge response provided was incorrect. Please try again.