How to create an Add-in for Visual Studio?
If you are planning to create your own Add-in for Visual Studio, I found a very good source written by Jon Rista - Writing a Visual Studio 2005 Add-in.
Follow the link below and you'll see explanation and will have ability to download source code (C#).
http://www.codeproject.com/useritems/LineCounterAddin.asp