On double click, NetBeans highlights all occurrences of a variable. How can I change this color? I've played with Tools->Options->Fonts & Colors, but can not find element responsible for this.

netbeans screenshot


Try this :

  • Tools->Options->Fonts & Colors
  • Syntax
  • Select language "Java"
  • Change "Mark Occurences" Background
| improve this answer | |

In my case (Java / Netbeans 8.1)

Tools->Options->Fonts & Colors
Select language "All Languages"
Change "Mark Occurrences" Background
| improve this answer | |
  • Welcome to Super User! This duplicates another answer and adds no new content. Please don't post an answer unless you actually have something new to contribute. – DavidPostill Nov 26 '16 at 11:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.