Several years ago (Visual Studio 2010 era), Visual Studio included a very popular macro system built around the VBA Macro language. Starting with VS2012, that functionality has been missing from Visual Studio leaving users to either do without or seek a 3 rd party alternative. To address this shortcoming, Microsoft’s Justin Clareburt has announced the return of macros to both Visual Studio 2013 and 2013 via a new extension called Macros for Visual Studio.
The extension provides users with several abilities, including the option to record and replay active document operations and IDE commands. Macros can be replayed multiple times, they can be assigned keyboard shortcuts, and the resulting macro files can be edited from within Visual Studio. The extension also can make use of Visual Studio DTE APIs for greater manipulation of the IDE beyond just recording keystrokes.
This access to the DTE APIs provides a major source of power for this extension. Sample scripts are provided that include demonstrations on how to programmatically adjust font sizes, set breakpoints, or modify all files in active solution among many others.
The extension itself is written in C#, licensed under the MIT license, and available on GitHub for those who wish to examine how it works. It is also available via the Visual Studio Gallery for immediate installation and use within your IDE.