Reputation: 159
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.
But if I put the cursor on a usage, it doesn't highlight the assignments above.
Upvotes: 0
Views: 380
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:
Upvotes: 2