background
Selecting a variable in IDEA will mark all the variables related to the variable, so that it is very convenient to know where the variable appears. This function is called in Eclipse Mark Occurrences
, but I don't know how to call it in IDEA.
The pain point we want to solve is that the prompts are not obvious . As shown in the picture below, the Macbook has such a good screen, whether it is in the dark or white theme, it is not very clear (especially the dark theme that many people like, it is almost impossible to look directly at it, it is simply incomprehensible Why do so many people like to use the dark theme of whirring)
(Careful friends have observed that although they are all the same variable, the place where the variable is changed and other situations are different colors)
solution
This change is global, not specific to a project
-
打开:Settings/Preferences -> Editor -> Color Scheme -> General
-
Modify: "Backgroud" color of "Identifier under caret", note that what is modified here is the non-assigned one of the selected variables, as shown in the figure below
-
Modify: "Backgroud" color of "Identifier under caret(write)", the color here is to control the assignment of the selected variable, as shown in the figure below
I personally change the "Backgroud" of "Identifier under caret" and "Identifier under caret(write)" to 9F9DA7
and7C52FF
The effect is as follows:
It can be seen that it is much more obvious, especially in the case of a lot of codes!