How can I use ReSharper to list unused methods in a solution?

Micheal Wells picture Micheal Wells · Mar 28, 2013 · Viewed 35k times · Source

In a legacy ASP.NET project I have inherited, there are an abundance of methods defined which are used absolutely nowhere.

I'm familiar with the "Find usages" functionality, but would like to be able to generate a list of methods which are not called anywhere in the app. Does such functionality exist?

Answer

Gauthier G. Letellier picture Gauthier G. Letellier · Mar 28, 2013

You can select ReSharper => Inspect => Codes Issues in solution ; And there, you can group by "Issue Type" and you should see all issues that match with "Type or type member is never used" (unused method goes there)

(And if you click right on it, you can select : "Show only "type or type member is never used" issues" .. and there you go ;)

ReSharper[1]