it depends on the scope where you want to find unused members. When you open a file in the editor, ReSharper highlights unused members in grey and suggests you to remove or comment them. However, there is currently no feature that would allow to remove all unused members from a project/solution at once.
I do not want a feature that auto remove the unused members, this is too scary. I have been using ReSharper for months and I know it highlights the unused members and show as warning, this is a nice feature. But it only can detect private members, for a public members, I have to use the 'find usage' to check whether it is in used. What I am looking for is a function that list all the unused public members, as I found that I have some really unused members but they appear to be public members and I won't know it until I check them 1 by 1.
it depends on the scope where you want to find unused members. When you open a file in the editor, ReSharper highlights unused members in grey and suggests you to remove or comment them. However, there is currently no feature that would allow to remove all unused members from a project/solution at once.
ReSharper indeed highlights as unused only private members. There are two reasons for it. First, finding usages of a public member (read 'checking it has no usages') would require project-wide or even solution-wide analysis and such analysis may negatively impact performance of highlighting. Second, even more important, a public member may be used from some assembly that is even not a part of the solution, and such usages cannot be found.
I agree, however, that feature showing all unused public members would be useful. Could you please submit a request for it to the tracker?
I do not want a feature that auto remove the unused members, this is too scary. I have been using ReSharper for months and I know it highlights the unused members and show as warning, this is a nice feature. But it only can detect private members, for a public members, I have to use the 'find usage' to check whether it is in used. What I am looking for is a function that list all the unused public members, as I found that I have some really unused members but they appear to be public members and I won't know it until I check them 1 by 1. Thanks, Tee "Dmitry Shaporenkov" <dsha@jetbrains.com> wrote in message news:c8a894d969f7f8c7754283098849@news.intellij.net...
>> Hello Tee, >> >> it depends on the scope where you want to find unused members. When >> you >> open a file in the editor, >> ReSharper highlights unused members in grey and suggests you to >> remove or >> comment them. However, >> there is currently no feature that would allow to remove all unused >> members from a project/solution at once. >> Regards, >> Dmitry Shaporenkov >> JetBrains, Inc >> http://www.jetbrains.com >> "Develop with pleasure!" >>> Hi, >>> >>> Does ReSharper has this feature to list all methods/varibles that >>> have no usage found? >>> >>> Thanks, >>> Tee
Hello Tee,
it depends on the scope where you want to find unused members. When you open
a file in the editor,
ReSharper highlights unused members in grey and suggests you to remove or
comment them. However,
there is currently no feature that would allow to remove all unused members
from a project/solution at once.
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
Hi Dmitry,
I do not want a feature that auto remove the unused members, this is too
scary.
I have been using ReSharper for months and I know it highlights the unused
members and show as warning, this is a nice feature. But it only can detect
private members, for a public members, I have to use the 'find usage' to
check whether it is in used. What I am looking for is a function that list
all the unused public members, as I found that I have some really unused
members but they appear to be public members and I won't know it until I
check them 1 by 1.
Thanks,
Tee
"Dmitry Shaporenkov" <dsha@jetbrains.com> wrote in message
news:c8a894d969f7f8c7754283098849@news.intellij.net...
>
>
>
>
>> Hi,
>>
>> Does ReSharper has this feature to list all methods/varibles that have
>> no usage found?
>>
>> Thanks,
>> Tee
>
Tee,
ReSharper indeed highlights as unused only private members. There are two
reasons for it.
First, finding usages of a public member (read 'checking it has no usages')
would require project-wide or
even solution-wide analysis and such analysis may negatively impact performance
of
highlighting. Second, even more important, a public member may be used from
some assembly that is even not a
part of the solution, and such usages cannot be found.
I agree, however, that feature showing all unused public members would be
useful. Could you please submit a request
for it to the tracker?
Regards,
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"
>> Hello Tee,
>>
>> it depends on the scope where you want to find unused members. When
>> you
>> open a file in the editor,
>> ReSharper highlights unused members in grey and suggests you to
>> remove or
>> comment them. However,
>> there is currently no feature that would allow to remove all unused
>> members from a project/solution at once.
>> Regards,
>> Dmitry Shaporenkov
>> JetBrains, Inc
>> http://www.jetbrains.com
>> "Develop with pleasure!"
>>> Hi,
>>>
>>> Does ReSharper has this feature to list all methods/varibles that
>>> have no usage found?
>>>
>>> Thanks,
>>> Tee