Lahiru Chandima
Lahiru Chandima

Reputation: 24068

How to change usage highlight color in IntelliJ IDEA

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?

Upvotes: 94

Views: 37508

Answers (5)

ankit
ankit

Reputation: 2845

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

Upvotes: 7

Bohdan
Bohdan

Reputation: 17193

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

I suggest editing background color.

enter image description here

Upvotes: 17

vossad01
vossad01

Reputation: 11948

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)

Upvotes: 0

user9087
user9087

Reputation: 191

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

Upvotes: 17

Andreas Wederbrand
Andreas Wederbrand

Reputation: 39951

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.

Upvotes: 158

Related Questions