Getting a list of unused types and methods in a file or project?

I know I can use Resharper to visually know if a method is used in the code.

However I would like to get a list of all unused types and methods (including public) which are in a file or a project. Preferably ability to export the list to a file.

Is this possible in R#?

3 comments
Comment actions Permalink

Yep, with ReSharper 5.0 you can right-click project (folder or entire solution)
and select Find Code Issues. The filter to unused members with toolbar action.
If you need a text file, you can hit Export toolbar button.

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


IR> I know I can use Resharper to visually know if a method is used in
IR> the code.
IR>
IR> However I would like to get a list of all unused types and methods
IR> (including public) which are in a file or a project. Preferably
IR> ability to export the list to a file.
IR>
IR> Is this possible in R#?
IR>
IR> ---
IR> Original message URL:
IR> http://devnet.jetbrains.net/message/5272343#5272343


0
Comment actions Permalink

Thanks. But it's not finding unused types or is there a special way to get them to be displayed?

See this post: http://devnet.jetbrains.net/thread/290777

0
Comment actions Permalink

Hello abdu,

Do you have solution-wide analysis turned on (under ReSharper | Options |
Code Inspection | Settings)? It should be turned on in order to see unused
public types and members through Find Code Issues. Thank you!

Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

Thanks. But it's not finding unused types or is there a special way to
get them to be displayed?

See this post: /thread/290777

---
Original message URL:
http://devnet.jetbrains.net/message/5272396#5272396



0

Please sign in to leave a comment.