Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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).

like image 584
nicoqueijo Avatar asked Jun 25 '17 23:06

nicoqueijo


2 Answers

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

like image 160
olivejp Avatar answered Nov 15 '22 21:11

olivejp


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

like image 25
Sahan Serasinghe Avatar answered Nov 15 '22 20:11

Sahan Serasinghe