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?
Right click on your solution and selection "Find Code Issues". One of the results is "Unused Symbols". This will show you classes, methods, etc., that aren't used.
To find unused members with a Code Analysis Ruleset, from the Visual Studio menu select File -> New -> File… -> General -> Code Analysis Rule Set. Uncheck all the rules. There are many rules we don't care about right now – and some we probably won't ever care about.
In newer versions of IntelliJ it's under Code -> Analyze Code -> Run Inspection by Name. Show activity on this post.
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 ;)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With