Question
How to check the classes that are not used in the solution?
Answer
The names of the unused classes are greyed out.
To show all unused classes in the list, do the following:
- run Solution-Wide Analysis via ReSharper | Options | Code Inspection | Settings | Enable solution-wide analysis;
- run Find Code Issues on a solution/project/file (right-click on a solution node in Solution Explorer). It will open a new tool window after the process is complete;
- click Filter Issues...;
- click Uncheck All;
- enable Type member is never used;
- filter the result by the word "class".
An alternative option is to go to any unused class:
- press Alt+Enter
- select Inspection: 'Type member is never used'" | Find similar issues in file | Find in "..." solution
- filter the result by the word "class".
Comments
0 comments
Please sign in to leave a comment.