Add-In / Macro Help

  • Thread starter Thread starter Alex Stevens
  • Start date Start date
A

Alex Stevens

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
 
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
 
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/d...editortoaddtexttovisualbasicnetcodewindow.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
 
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)
 
Back
Top