Need to develop an IDE add-on that would behave similar to the Find in Entire Solution

  • Thread starter Thread starter Academia
  • Start date Start date
A

Academia

I like to be consistent in the way I name items.

Unfortunately I changed the rules a few times as the code developed.

So I'm sure I have things like:

Private Sub XYZ_Click(ByVal sender As System.Object, ByVal e As EventArgs)
Handles ABC.Click

I can't spend a lot of time on this but it would be great if I could easily
develop an IDE add-on that would behave similar to the Find in Entire
Solution except that instead of looking for a string match it would be
looking for something else.



Is there an example anywhere that I could use as a starting point for a
development.





Thanks in advance
 
Before you can even think about developing such a component, you need to
define 'something else'.
 
For example, checking to see if the Sub name matches the Handles clause.

Simple regular expressions in Find dialog are ideal for this task.

Anyway, if you really want to do it yourself, the macro would be simpler
than add-in. See Carlos's article how to retrieve all code elements:
http://www.mztools.com/articles/2006/MZ2006008.aspx
See my short introduction to macros if you haven't used them before:
http://www.helixoft.com/blog/archives/6

Also, Carlos's great MZ-Tools add-in has advanced search functionality,
http://www.mztools.com/v6/features.aspx#LocateCodeFaster
maybe that's what you need.
 
Great answer.

BTW you may wish to check the "Recording Macros" reference on your site.
MS has moved that site to a new location.


Thanks
 
Back
Top