Home All Groups Group Topic Archive Search About

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

Author
19 Nov 2007 7:30 PM
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

Author
19 Nov 2007 9:23 PM
Stephany Young
Before you can even think about developing such a component, you need to
define 'something else'.


Show quoteHide quote
"Academia" <academiaNOSPAM@a-znet.com> wrote in message
news:euUW3KuKIHA.2432@TK2MSFTNGP04.phx.gbl...
>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
>
>
>
>
Author
19 Nov 2007 9:37 PM
Academia
For example, checking to see if the Sub name matches the Handles clause.
(See below)


Show quoteHide quote
"Stephany Young" <noone@localhost> wrote in message
news:O3IEvJvKIHA.1212@TK2MSFTNGP05.phx.gbl...
> Before you can even think about developing such a component, you need to
> define 'something else'.
>
>
> "Academia" <academiaNOSPAM@a-znet.com> wrote in message
> news:euUW3KuKIHA.2432@TK2MSFTNGP04.phx.gbl...
>>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
>>
>>
>>
>>
>
Author
20 Nov 2007 9:14 AM
Peter Macej
> 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.

--
Peter Macej
Helixoft - http://www.helixoft.com
VSdocman - Commenter and generator of class documentation for C#, VB
..NET and ASP .NET code
Author
20 Nov 2007 11:43 PM
Academia
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

Show quoteHide quote
"Peter Macej" <pe***@helixoft.com> wrote in message
news:OxR0NX1KIHA.3400@TK2MSFTNGP03.phx.gbl...
>> 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.
>
> --
> Peter Macej
> Helixoft - http://www.helixoft.com
> VSdocman - Commenter and generator of class documentation for C#, VB .NET
> and ASP .NET code