Shufflepants
Shufflepants

Reputation: 159

How do I get intellij IDEA to highlight assignment?

The only options I have seen only highlight where the variable is accessed but not where it's assigned or declared.

Edit: On Windows 10 editing Java code.

I'm already using enter image description here

But if I put the cursor on a usage, it doesn't highlight the assignments above. enter image description here

Upvotes: 0

Views: 380

Answers (1)

phaze0
phaze0

Reputation: 2008

This is actually a feature of the Colors Scheme.
Under Settings > Editor > Colors & Fonts > General you can change the settings for Code > Identifier under caret (write), which will be any assignment operation to the variable you currently have selected with the caret.
Here you can set not only the background color (for highlighting), but also a color stripe on the scroll bar or other text effects:

enter image description here

Upvotes: 2

Related Questions