View Unused C# Classes
How can I run an inspection on my solution and list all unused classes?
I've created a new test class called DeleteMe.cs that is not referenced anywhere, but I'm not seeing anything show me that it's unused.
Please sign in to leave a comment.
Hello Shaun M Bridges, thank you for your message.
The class names in this case should be greyed out (https://i.imgur.com/qpr4a9p.png).
If you would like all such cases to be presented in the list, then:
An alternative option is to go to any unused class, hit "Alt+Enter", select "Inspection: 'Type member is never used'" | Find similar issues in file | Find in "..." solution | filter the result by the word "class". Please let me know if you have any questions. Thank you!