Groups | Blog | Home
all groups > visual studio .net ide > july 2004 >

visual studio .net ide : Add-In / Macro Help


Alex Stevens
7/23/2004 8:42:11 AM
Hi All,

I was hoping that someone could put me in the right direction with a utility
I'm trying to write for myself.
I would like to have a search which would find a string anywhere in my
current project, and copy the whole line either to a ouput window, or
optionally to a file.

Where would I even start with this.
Would someone give me a few pointers?

Thanks

Alex

Matt
7/23/2004 2:27:02 PM
I know VB.NET has a function, INSTR(), that tells you whether a certain substring is contained in the whole string.

I hope this helps.

Matt

[quoted text, click to view]
Tufan Erdinc [MSFT]
7/26/2004 1:47:21 PM
Hi Alex,

The best place to start is to look at similar samples and walkthrougs and
start your project by re-using some of those samples.

There's a macro sample on MSDN for adding a text in a VB code editor. That
may help you start with using Text Documents.

http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcon/html/vbconusingmacroeditortoaddtexttovisualbasicnetcodewindow.asp

Also if you start VS and Go to Tools-Macros-Macro Explorer, you will see a
"Samples" Macro project. In those samples you can take a look at samples
under Utilities, like "FindLine", "FindCase" etc. Also you can use Macro
Recorder (Tools-Macros-Record Temporary Macro) to get code for some common
actions that you may use in your project.

Let me know if you need anything else.

Thanks
Tufan


[quoted text, click to view]

Carlos J. Quintero [MVP]
8/2/2004 3:26:49 PM
You have a lot of resources in the Files section of the forum below to get
you started with add-ins/macros:
--

Carlos J. Quintero (Visual Developer - .NET MVP)

FAQs, Knowledge Base, Files, Docs, Articles, Utilities, etc. for .NET
addins:
http://groups.yahoo.com/group/vsnetaddin/ (free join)



"Alex Stevens" <AlexStevens_NOSPAMPLEASE@gcc.co.uk> escribió en el mensaje
news:u3J9RiIcEHA.308@TK2MSFTNGP12.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button