This article shows how to create an add-in tool
Creating simple Add-in for Visual Studio.NET (c-sharpcorner.com)