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#?
Please sign in to leave a comment.
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
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
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!"