Issue
In Apache Netbeans 11.1, I use Nimbus and Netbeans light theme. This light theme has a problem that I find really annoying.
As shown in pictures below, when I type pub (for public) and stop half way, the row turns black, which makes the code not readable. If I finish the public
keyword, the row will turn to a color set at Highlight Caret Row
.
So how can I remove the black row when typing?
Solution
I found the answer. It's quite simple but I did not look up carefully. So here is the trick.
This black color bar comes from the Fixable Error
of Annotations
. So just changing the background of this Fixable Error
category from dark color to any color will do the work. (Have to close and re-open the code editor to see the change) .
Here I changed to white background, and it's gone.
Answered By - B.Green