vscode-csharp icon indicating copy to clipboard operation
vscode-csharp copied to clipboard

[feature request] Filter out `nameof` when finding references for a function

Open gdh1995 opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe.

Not found.

Describe the solution you would like

When showing references for a function symbol, provide a setting item (or even a button in the code lens / references panel) to filter out all nameof (...) matches.

Applicable Scenarios

I want to see how a function is used, but such nameof items mess up the list.

Describe alternatives you've considered

I can use a Find All with RegExp enabled and find (?<!nameof \()...... , but this is too complex to type it every time. And in this way it may find unrelated symbols with a same name and those in string literals.

Additional context

Nothing.

gdh1995 avatar Jul 04 '22 10:07 gdh1995