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.
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.
File->setting or ctrl+alt+s.
Use ⌃⌘G (macOS), or Ctrl+Alt+Shift+J (Windows/Linux), to select all occurrences of the same word.
File
| Settings
(Preferences
on Mac) | Editor
| General
| Highlight usages of element at caret.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With