vscode-csharp
vscode-csharp copied to clipboard
[feature request] Filter out `nameof` when finding references for a function
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.