Identifier Highlighter

Highlights identifiers under caret. If more than one instance with the same identifier is used in the file, only the usages of that specific instance are highlighted. For parameters, local variables, and fields, a differentiation between reads and writes to that identifier are made with separate configurable colors. Use Shift+Alt+Up and Shift+Alt+Down to navigate up and down to each highlighted occurrence. Use Shift+Alt+Right to return to original highlighted occurrence starting point. Use Shift+Alt+Left to go to the declaration highlighted occurrence only if exists in the same file. Use Shift+Alt+R to rename the highlighted occurrences in the file. Use Shift+Alt+L and Shift+Alt+U to lock and unlock the highlighting to allow movement through the file without changing the highlighted occurences. Use Shift+Alt+T to toggle the plugin on or off.

Download plugin

Recent change notes

3.62

Recompile for 9.0 beta release compatibility

3.61

Recompile for latest Maia release compatibility

3.60

Check for identifier to left of cursor (Idea contribution from Oliver Pfeiffer)

Added the differentiation between reads and writes of parameters, local variables, and fields with separate colors. These colors are configurable in the settings dialog.

3.10

Added marker bar/right gutter highlighting and tooltips.

Also added the ability to configure this new option in the configuration panel.

3.02

Grouped the editor popup menu actions into a cascade menu item.

3.01

Fixed a bug in the new locking feature. The locking/unlocking worked, but the intent was to be able to edit the file while it was locked. This part did not work. Now it does and it works quite well now.

I also simplified some code so hopefully I didn't introduce some new bugs.

3.00

Added new feature called locking. You can now lock the current set of identifier highlighting so that you can move the cursor throughout the file without losing the highlighting. This will allow you to edit a different part of the file while keeping the highlighting intact. You can then continue to navigate to each identifier occurrence as before.

Use Shift+Alt+L and Shift+Alt+U to lock and unlock respectively.

2.82

Sorted usages by text offset to be compatible with Selena release.

2.81

More Null pointer checking to help with 7.x.

2.80

Try to make compatible with Idea 7.x by using invokeLater.

2.77

Try to fix an exception with -1 array index.

2.76

Try to fix an exception with bad document length.

2.75

Fixed a small bug to make it work properly with JSP files.

2.72

Initialize the rename identifier dialog with the current identifier value to make small edits quicker.

2.71

WARNING, the default hotkeys have been changed!!!!!

Due to a few complaints that I chose hotkeys that were already used, I changed to Shift+Alt+ where is Up, Down, Left, Right, or R.

You can change these to whatever you like in your keymapping.

2.70

Added Alt+R to allow renaming the highlighted identifier occurrences.

2.61

Found an exception that OpenAPI catches internally so I can't catch it myself. Had to check for it before it happens.

2.60

Fixed browsing files from outside the current project like JDK's src.zip.

Also, added tons more customizations so that you can independently enable/disable and change colors for different types of identifiers like Classes, Methods, Fields, Parameters, Local Variables, and Other.

2.02

Fixed bug when variable started with same letters as its type.

2.01

Fixed a few stupid bugs.

2.00

I finally got the functionality I wanted.

Now only the usages of the specific instance of the identifier are highlighted.

So if you have the same name used for more than one local variable througout the file, for example, only the usages of that specific local variable are highlighted.

This allowed me to add Alt+Left to go to the highlighted occurrence where the variable is declared.

However, if the declared occurrence is in another file, it will NOT go there.

1.51

Fix another NPE.

1.50

Add configuration dialog to control highlight colors and highlighting layer in editor.

General usage instructions

Highlights identifiers under caret. If more than one instance with the same identifier is used in the file, only the usages of that specific instance are highlighted. Use Shift+Alt+Up and Shift+Alt+Down to navigate up and down to each highlighted occurrence. Use Shift+Alt+Right to return to original highlighted occurrence starting point. Use Shift+Alt+Left to go to the declaration highlighted occurrence only if exists in the same file. Use Shift+Alt+R to rename the highlighted occurrences in the file. Use Shift+Alt+L and Shift+Alt+U to lock and unlock the highlighting to allow movement through the file without changing the highlighted occurences. Shift+Alt+T to toggle the plugin on or off.