Categories


Authors:
scastria
logos
BSD

Identifier Highlighter

Products: IntelliJ IDEA

Vendor: Shawn Castrianni

Email:

Website: http://www.jetbrains.net...T/Identifier+Highlighter

SourceCode: Identifier_Highlighter_1236.zip

Description:

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.
Downloads: 35098
Rating:
Participated in rating: 31
Version Since Build Until Build File/URL Size (Kb) Date Details
3.62. . . Download 161.88 2009-11-09 00:23:50 details
. .
3 updates are hidden show all updates

Recent change notes:

  • 3.62
    1. Recompile for 9.0 beta release compatibility
  • 3.61
    1. Recompile for latest Maia release compatibility
  • 3.60
    1. Check for identifier to left of cursor (Idea contribution from Oliver Pfeiffer)
  • 3.50
    1. Improved highlighting during editing (Implementation contribution from Pierre Ingmansson)
  • 3.47
    1. Protected against another NPE.
  • 3.46
    1. Compiled for older JDK support.
  • 3.45
    1. Fix persistence of settings bug.
  • 3.44
    1. New IntelliJ 8 compatible version.
  • 3.43
    1. Disable for IntelliJ 8 and above.
  • 3.42
    1. Catch some more erroneous exceptions.
  • 3.41
    1. Catch some more erroneous exceptions.
  • 3.40
    1. Added online help.
  • 3.26
    1. Try to protect against exceptions in the resolve method.
  • 3.25
    1. Added global ability to toggle the plugin on or off with Shift+Alt+T.
    2. This toggle is also available in the settings dialog.
    3. 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
    1. Added marker bar/right gutter highlighting and tooltips.
    2. Also added the ability to configure this new option in the configuration panel.
  • 3.02
    1. Grouped the editor popup menu actions into a cascade menu item.
  • 3.01
    1. 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.
    2. I also simplified some code so hopefully I didn't introduce some new bugs.
  • 3.00
    1. 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.
    2. Use Shift+Alt+L and Shift+Alt+U to lock and unlock respectively.
  • 2.82
    1. Sorted usages by text offset to be compatible with Selena release.
  • 2.81
    1. More Null pointer checking to help with 7.x.
  • 2.80
    1. Try to make compatible with Idea 7.x by using invokeLater.
  • 2.77
    1. Try to fix an exception with -1 array index.
  • 2.76
    1. Try to fix an exception with bad document length.
  • 2.75
    1. Fixed a small bug to make it work properly with JSP files.
  • 2.72
    1. Initialize the rename identifier dialog with the current identifier value to make small edits quicker.
  • 2.71
    1. WARNING, the default hotkeys have been changed!!!!!
    2. 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.
    3. You can change these to whatever you like in your keymapping.
  • 2.70
    1. Added Alt+R to allow renaming the highlighted identifier occurrences.
  • 2.61
    1. Found an exception that OpenAPI catches internally so I can't catch it myself. Had to check for it before it happens.
  • 2.60
    1. Fixed browsing files from outside the current project like JDK's src.zip.
  • 2.57
    1. Improved handling of declaration outside current file.
    2. Fixed some ArrayIndexOutOfBounds exceptions when browsing JDK src.zip files.
  • 2.55
    1. Added quick way to set all colors for all identifier types.
  • 2.50
    1. Improved UI for setting colors with a ColorButton component.
    2. 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
    1. Fixed bug when variable started with same letters as its type.
  • 2.01
    1. Fixed a few stupid bugs.
  • 2.00
    1. I finally got the functionality I wanted.
    2. Now only the usages of the specific instance of the identifier are highlighted.
    3. 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.
    4. This allowed me to add Alt+Left to go to the highlighted occurrence where the variable is declared.
    5. However, if the declared occurrence is in another file, it will NOT go there.
  • 1.51
    1. Fix another NPE.
  • 1.50
    1. Add configuration dialog to control highlight colors and highlighting layer in editor.
    2. Dialog obtained from main settings panel.
  • 1.03
    1. Fix another NPE. Add DocumentListener to handles changes to document better.
  • 1.02
    1. Fix another NPE.
  • 1.01
    1. Fix a NPE.
  • 1.00
    1. Initial version.

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.

Comments:

12345..6>
Anonymous
Rated:
2011-03-02 03:18:53
I love this plugin and would like to donate to see it stay alive.
.
Anonymous
2009-12-02 20:54:18
There appears to be a bug in the plugin versioning system since they refactored the format for 9.X. Therefore, I think the only workaround is to manually download the plugin from this webpage selecting the most appropriate version. 3.62 should be used for IJ9.X. 3.60 should be used for IJ8.X. 3.43 should be used for IJ6.X and IJ7.X
.
Anonymous
2009-12-01 13:08:31
I used 7160 version to work in 8.1.4 IDEA. Newer versions didn't work properly.
.
marka971
2009-11-18 15:01:24
Cannot get the plugin to work in 8.1.4. It highlights occurances, but I can\'t navigate using Alt+Shift+Arrow keys.
.
Anonymous
Rated:
2009-11-17 18:36:36
.
Anonymous
2009-11-10 21:39:31
I cannot reproduce that problem with IJ 9.0 Beta. I configured 3.62 to only be used with IJ 9.0 but the plugin web page doesn't seem to show that. Therefore, perhaps you mistakenly downloaded it for IJ 8.X which may not behave properly.
.
melwindmello
2009-11-10 10:50:41
The plugin is great. However, the latest release does not hightlight all instances of variables and methods. Just the declaration and selection are highlighted.
.
Anonymous
Rated:
2009-09-13 01:13:33
I love this plugin and using all the times ! I have one suggestion, would it be possible to add an option to allow the highlight after a short time [few ms like 100] that the cursor over a specific word ?

In this way the scrolling with up/down should not be affected by some lags.

Thankx again for this fancy plugin.
.
scastria
2009-09-10 00:46:55
3.61: I didn't change anything, but I did recompile with 10666 plugin SDK and that seemed to fix the problem. Please use with 10666 version of Maia or later.
.
Anonymous
Rated:
2009-08-26 19:34:35
Yes, it doesn't work in latest Maia builds :(. Waiting for new version.

BTW standard "Highlight usages of element at caret" (Ctrl+Shift+F7) DOES provide go-to-next/previous-identifier-usage shortcuts (F3/Shift+F3) but seems not to provide go to first/last usage shortcuts.

Anyway I like Highlighter much more :)
.
Anonymous
Rated:
2009-08-13 19:25:11
Works great, but seems to be broken in Maia 10633 (highlights only one usage).

That's a pity, because I like it better than standard "Highlight usages of element at caret" which works slower and doesn't provide go-to-next/previous-identifier-usage shortcuts.

.
scastria
2009-06-30 09:28:03
3.60: Idea from Oliver Pfeiffer to look to the left of the text cursor for an identifier if not found to the right.
.
scastria
2009-06-01 02:09:12
3.50: Contribution from Pierre Ingmansson to help wierd highlighting artifacts whenever the document changed.
.
scastria
2009-04-22 19:01:27
I cannot reproduce this problem as I have the same version of IntelliJ and my plugin installed and my context menu works fine. You are the first to report this problem so perhaps it is specific to you. I would suggest a test to see if it is a bad interaction with my plugin and one of your other plugins. I would uninstall all of your plugins except IdentifierHighlighter and see if still see the same behavior. You could then add your other plugins back in one at a time to see which one triggers the problem. You could also try posting this to the plugin user forum.
.
Anonymous
2009-04-22 11:40:27
Identifier Highlighter interferes with the context menu in the editor window of IntelliJ. I.e. when I have the plugin installed, I don't get a context menu anymore. Not even when I disable the plugin via it's own global config setting. I'm using IntelliJ IDEA 8.1 (Build 9732) and the latest version of Identifier Highlighter (3.47).

The idea.log shows the following stacktrace:

2009-04-17 16:45:59,983 [ 182553] ERROR - com.intellij.ide.IdeEventQueue - Error during dispatching of java.awt.event.MouseEvent[MOUSE_RELEASED,(269,97),absolute(265,93),button=3,modifiers=Meta+Button3,clickCount=1] on frame0
java.lang.StackOverflowError
at com.intellij.util.containers.ConcurrentHashMap.equals(ConcurrentHashMap.java:1381)
at com.intellij.util.containers.ConcurrentHashMap$Segment.get(ConcurrentHashMap.java:269)
at com.intellij.util.containers.ConcurrentHashMap.get(ConcurrentHashMap.java:683)
at com.intellij.openapi.components.impl.ComponentManagerImpl.getComponentFromContainer(ComponentManagerImpl.java:49)
at com.intellij.openapi.application.impl.ApplicationImpl.getComponentFromContainer(ApplicationImpl.java:182)
at com.intellij.openapi.components.impl.ComponentManagerImpl.getComponent(ComponentManagerImpl.java:21)
at com.intellij.openapi.components.impl.ComponentManagerImpl.getComponent(ComponentManagerImpl.java:170)
at com.intellij.openapi.actionSystem.ActionManager.getInstance(ActionManager.java:39)
at com.intellij.ide.ui.customization.CustomizationUtil.a(CustomizationUtil.java:64)
at com.intellij.ide.ui.customization.CustomizationUtil.access$000(CustomizationUtil.java:88)
at com.intellij.ide.ui.customization.CustomizationUtil$CachedAction.getChildren(CustomizationUtil.java:12)
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:58)
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:9)
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:9)
at com.intellij.openapi.actionSystem.impl.Utils.a(Utils.java:9)
...
[snip - thousands of identical lines]
.
12345..6>