How to change usage highlight color in IntelliJ IDEA

JavaIntellij Idea

Java Problem Overview


In Dracula theme, when I click on a symbol, even though IntelliJ IDEA highlights the usages of that symbol, the highlights are not that visible. I need to change the highlight text color and background color of usages so usages are more visible. I Googled for a solution but couldn't find.

Following page mentions that this can be done in Colors and Fonts settings page but I couldn't find where I can change the colors in that page.

https://www.jetbrains.com/idea/webhelp/highlighting-usages.html

Can somebody help me in this please?

Java Solutions


Solution 1 - Java

Go into Settings->IDE Settings->Editor->Color and Fonts->General

Make a copy of Darcula to something like MyOwnDarcula (can't change the built in schema).

Find whatever you need to change, in this case I think it's "Identifier under caret" and change the colors for foreground and background to your liking.

Solution 2 - Java

The accepted answer is wrong. Editor>Colors & Fonts>General>Selection background/Selection foreground

Solution 3 - Java

It's called "identifier under caret" and "identifier under caret (write)".

I suggest editing background color.

enter image description here

Solution 4 - Java

Steps for your solution are:

  1. File->setting or ctrl+alt+s
  2. Got identifier under caret(For finding this click on code in general tab and enter identifier under caret). Refer image.

ss1

Solution 5 - Java

The linked page also mentions Highlighting usages of a symbol in the current file with a Ctrl + Shift + F7 keyboard shortcut.

The highlighting for that is governed by "Search Results" > "Search Result" (under Editor > Color Scheme > General)

Attributions

All content for this solution is sourced from the original question on Stackoverflow.

The content on this page is licensed under the Attribution-ShareAlike 4.0 International (CC BY-SA 4.0) license.

Content TypeOriginal AuthorOriginal Content on Stackoverflow
QuestionLahiru ChandimaView Question on Stackoverflow
Solution 1 - JavaAndreas WederbrandView Answer on Stackoverflow
Solution 2 - Javauser9087View Answer on Stackoverflow
Solution 3 - JavaBohdanView Answer on Stackoverflow
Solution 4 - JavaankitView Answer on Stackoverflow
Solution 5 - Javavossad01View Answer on Stackoverflow