Home » Android » android – How to highlight all instances of variables that are clicked on?

android – How to highlight all instances of variables that are clicked on?

Posted by: admin June 15, 2020 Leave a comment

Questions:

Netbeans
Android Studio

First image is my Netbeans IDE. As you can see whenever I place the text cursor on a variable, that variable is highlighted everywhere else where it appears.
I find this feature very helpful and want to enable it on Android Studio (second image).

How to&Answers:

Have you tried Identifier under caret setting?

Probably some mismatch with the colors you have set for Foreground and Background

Check my screenshot and let me know how it goes

enter image description here

Answer:

Have you try this =>

File -> Settings -> Editor -> General -> Highlight on Caret Movement

Then for my personal use, I checked the three options :

-Highlight matched brace
-Highlight current scope
-Highlight usages os element at caret

enter image description here