.NET Zone is brought to you in partnership with:

I’ve been a Windows developer since 3.0 and caught the Visual Basic wave early with v1. I’ve released a “production” application in every version of VB since then (except VB for DOS). Focusing on enterprise, line-of-business development I’ve built Call Center Applications, Mortgage finance systems, Customer Relationship Management tools and more recently I’ve been in the Litigation Support/Electronic Data Discovery/Electronically Stored Information space. Greg is a DZone MVB and is not an employee of DZone and has posted 476 posts at DZone. You can read more from them at their website. View Full User Profile

Missing Macros In Visual Studio 2012? Convert Them To AddIns.

  • submit to reddit

Alkampfer's Place - Converting Visual Studio Macro to Visual Studio plugin

Visual Studio 2012 is really faster than 2010, this is due to an excellent work of the team to maximize performance and because in this release some of the older and less used part of the IDE were removed. One of this part is the Macro editor that is not anymore available in Visual Studio. This is one of the feature I missed most because I’ve used it in the past to automate some basic task, like attach to IIS automatically with a keyboard shortcut. The Macro engine had some limitation, it supported only Visual Basic, it was old code that needs time to be maintained and finally everything you can do with a Macro can be done with Visual Studio Plugin so there was no need to maintain anymore in the product.

If you used macro with VS2010 and you want to use them in VS2012 you need to create an addin, the easiest way is to go for a Visual Studio Package:



I've seen a few comments recently about macros not being in VS2012 and while they've not be in the Beta's or RC's either, RTM brings with it a whole new crowd who are just discovering this now.

If you relied on marco's there's a couple things you can do. Ricci's approach above is one (and one the I think, in the end, might be best, in that it provides easier reuse, more power, etc.) and John Robbins NuGet/PowerShell approach.

Published at DZone with permission of Greg Duncan, author and DZone MVB. (source)

(Note: Opinions expressed in this article and its replies are the opinions of their respective authors and not those of DZone, Inc.)


Andrey Karpov replied on Thu, 2012/11/01 - 2:19am

Relevant article: Visual Studio 2012 and macros.

Sergey Vlasov replied on Thu, 2013/09/26 - 10:44am

One more alternative to reuse existing macros in VS 2012 is the new Visual Commander extension. It gives all power of an add-in, but much simpler to use.

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.