Visual Commander is a freemium extension for Visual Studio 2010+ allowing you to automate repetitive tasks in the IDE.
Visual Commander Professional v1.6 adds the ability to create common code modules that can be reused from different commands and extensions:

A common code module in Visual Studio 2013
Visual Commander v1.6 also adds the ability to run commands directly from the Commands window by double-clicking or with the new Run button.