简体   繁体   中英

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?

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.

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

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

I suggest editing background color.

在此输入图像描述

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

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)

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM