+2

Highlight matches of the the token at the cursor or selection in source viewers/editors

Pavel Novikov 4 years ago updated 4 years ago 3

When the viewer or editor highlights parts of code that match the token that is currently at the editing cursor or the current selection is a super useful productivity aid and I miss it a lot in SmartGit.

So called "match margin" would be cool to have as well.

You can see how it work in a lot of editors, e.g. godbolt.org: move the editing cursor to a token or select text, notice how matches are highlighted and the locations of matches are indicated on the vertical scroll bar (the "match margin").

Would be extremely useful while looking at changes and blaming/investigating to quickly locate where in code things are used.

it looks something like this:

notice the green marks on the vertical scrollbar which indicate the positions of matches in text

IMHO this is the task of a good IDE. As you can see, your editor is not smart enough because the args.Length shouldn't be highlighted.

That's a random image from the internets (though it's probably a screenshot of old Visual Studio).

I agree that IDE should implement it. Visual Studio (with few extensions) does it very well (at least for me).

My point is that when I browse code within SmartGit (e.g. when investigating or resolving conflicts) I feel kinda naked, stripped down from that feature, unable to figure out where things are used in the file at a quick glance. That slows me down when working with SmartGit, sometimes significantly.