Project
ReSharper
Priority
Critical
Type
Feature
Fix versions
Mirabile Futurum
State
Open
Assignee
Kirill Skrygan
Subsystem
Navigation
Affected versions
No Affected versions
Fixed in build
No Fixed in build
  • Created by   Drew Noakes
    3 years ago (11 Jun 2008 13:09)
  • Updated by   Ilya Ryzhenkov
    10 months ago (13 Apr 2011 03:20)
  • Jira: RSRP-71850
    (history, comments)
 
RSRP-71850 Jump to the next reference
2
Issue is visible to: All Users
  The issue is visible to the selected user group only
Often when I'm using Find Usages I just want to know if the member is being used somewhere. In these cases, I'd like a new command to answer this question.

For example, CTRL+ALT+SHIFT+F7.

The problems with using regular Find Usages for this:

  • for public members, the whole codebase is scanned. sometimes this takes a while. this new feature could stop the scan as soon as one usage was discovered.
  • if only one usage exists, then the focus is taken to that usage. i know this is a configurable setting, but when my intention really is to find all usages, then i like going directly to the sole usage.

This new feature would answer the question via a tooltip -> "Usages exist." or "No usages exist."

I'd use this quite a lot when inheriting someone else's code where I suspect a lot of code is unused. Answering these questions (for example, on a static class with 30 constants) requires moving the focus around, scanning too much code and closing down unwanted Find Results panes.
Comments (4)
 
History
 
Linked Issues (?)
 
TeamCity Changes (0)
 
Drew Noakes
  Drew Noakes
11 Jun 2008 15:02
3 years ago
Another place where this would be especially useful is in the "Find dependant code" option in a project's references. This scan generally takes a while. Often I just want to know if I can remove the reference. Perhaps in future R# will be able to suggest when references are no longer required. Currently answering this question can take quite a while for a project with several dependencies.
Ilya Ryzhenkov
  Ilya Ryzhenkov
15 Jul 2008 19:37
3 years ago
For the find usages, I think we will do "Jump to next reference" global command, which will search for next item in project/folder/file natural order and stop there. It will answer your question too.
Ilya Ryzhenkov
  Ilya Ryzhenkov
16 Dec 2008 18:03
3 years ago
For 4.5, globally unused members are highlighted in gray.
Drew Noakes
  Drew Noakes
22 Sep 2009 15:18
2 years ago
Given the solution wide analysis in 4.5, the only remaining wish I have for this feature is a way to determine when a project reference is not required. Currently this is a tedious manual process that takes quite a lot of time.