Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IntelliJ: How to auto-highlight variables like in Eclipse

My employer wants me to use IntelliJ for Java development. Previously, I've always used eclipse.

One of my favorite features in eclipse was being able to click on a variable, method parameter, class field, etc and see the usage of those variables highlighted throughout the class.

Is there a way to enable this feature in IntelliJ IDEA? I'm using Ultimate version 9.0.3.

like image 410
tau-neutrino Avatar asked Sep 21 '10 18:09

tau-neutrino


People also ask

How do I highlight a variable in Intellij?

Press Alt+Shift+F11 or choose Edit | Find Usages | Highlight Usages in File from the main menu . Alternatively, you can press Ctrl+Shift+A , start typing the command name in the popup, and then choose it there. JetBrains Rider highlights read usages with blue and write usages with red. The colors are configurable.

How do I change the highlight color in Intellij?

File->setting or ctrl+alt+s.

How do I highlight the same word in Intellij?

Use ⌃⌘G (macOS), or Ctrl+Alt+Shift+J (Windows/Linux), to select all occurrences of the same word.


1 Answers

File | Settings (Preferences on Mac) | Editor | General | Highlight usages of element at caret.

like image 51
CrazyCoder Avatar answered Sep 21 '22 16:09

CrazyCoder