In Visual Studio, is there a quick way to search for an object's usage in the code behind? This is something I do constantly and the way I am currently doing it seems a little clunky.
I am using VS2005, WinForms, VB and CodeRush/RefactorPro.
Currently I do the following steps: In Design View
- Click the Object.
- In the Properties Dialog, double click the Name of the object
- Copy it to the clipboard (Using Ctrl-C or Right Click and selecting Copy)
- Press F7 to bring up the code behind editor
- Press Ctrl-Home to position to the top of the file.
- Press Ctrl-F, which brings up the Find Dialog
- Press Ctrl-V, to paste in the name of the object into the "Find what:" text box.
- Tap ENTER to start the Find.
Ideally, I would like to click the object in Design View then hit a hot key to do these other steps.
If VS2005 does not have anything built in, should I research using a Macro?