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.