Code Inspection: Find unused internal members



I'm trying to use Code Inspection in ReSharper 2022.2.4 in Visual Studio 2022 (17.4.1) to find all internal methods and properties that aren't being used, but I can't seem to find a rule that targets only internal -- or at least non-public -- members. Maybe I'm missing something, but the Type member is never used rule has quite the gap between private and public.

Is there a rule that doesn't include public members, or is there a way to change the definition of non-private to not include public? It's not feasible for me to decorate all public members with attributes in order for them to be disregarded.

Thanks in advance.

- Jeppe


Hello Jeppe,

There's an option in Properties window in ReSharper settings section that allows you to set all solution-wide inspections to "Internal symbols only". Hope that helps.


Thank you, Angelina. This was exactly what I was looking for.


Please sign in to leave a comment.