Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PyCharm highlight occurrences

Tags:

pycharm

In eclipse, when i click on a variable with the mouse (you know, the cursor is somewhere in the variable name), eclipse is useful enough to highlight all other occurrences of that variable in the file. I assume pycharm has this, but have no idea how to turn this on.

I knew how to do it at one stage, but it was (from memory) a keyboard thing that i had to keep pressing for each new variable. If the highlighting is possible, how do i keep it on?

like image 910
bharal Avatar asked Jun 05 '12 16:06

bharal


1 Answers

You need to enable this setting:

highlight usages of element at caret

But this question is actually a duplicate of IntelliJ: How to auto-highlight variables like in Eclipse.

like image 191
CrazyCoder Avatar answered Jan 03 '23 20:01

CrazyCoder