ILSpy icon indicating copy to clipboard operation
ILSpy copied to clipboard

Text Highlight

Open akyryz opened this issue 9 years ago • 4 comments

When clicking on local variables it's possible to highlight all instance of that variable but it's not possible to do the same with class variables.

I think the normal behavior should be Click to highlight and Ctrl+Click or even a Double Click to go to the definition instead.

akyryz avatar Dec 03 '16 20:12 akyryz

Agreed, going to definition is not very useful for fields.

dgrunwald avatar Dec 03 '16 21:12 dgrunwald

I'm not talking only about the fields, but properties, methods, any thing that has a reference and is not local to the method is clickable buy not highlightable, right now the highlight only works for local fields and methods parameters.

If you are looking for a method usage in a particular method, it's pretty hard to find all instances specially in big methods.

Edit: Ah, yeah! There is that too. The search does not highlight what you are looking for...

akyryz avatar Dec 03 '16 21:12 akyryz

If somebody is interested in implementing this, I suggest the following:

  1. add a new setting (turned off by default) that enables this behavior.
  2. Use Ctrl+Click instead of click for go to definition
  3. Single click should highlight all references to that member currently visible in the decompilation view.

siegfriedpammer avatar Jun 25 '20 12:06 siegfriedpammer

I am interested in implementing this. Is it still something people would like to see?

ed-graham avatar Sep 10 '22 10:09 ed-graham