Creating macros

A Visual Studio macro is code that can be run by the Visual Studio IDE.…A macro is usually used to automate some task in Visual Studio--…for instance, inserting Boilerplate comments, formatting or cleaning up…portions of your code.…Macros are written in a special version of Visual Basic. Plus, they are written…and edited in a special version of Visual Studio.…For today's demo, I'm in a solution called UsingMacros, and I've got the…PixelSmithDesktop application open so that I can look at the source code.…I'm going to double-click on MainWindow.xaml.cs.…

So to work with macros, you need to go to the Tools menu and then the Macros section.…There are a number of menu items in here.…The one we're interested in right now is the Macro Explorer.…We're going to enable the Macro Explorer by clicking on this menu item.…The Macro Explorer lives over here with the Solution Explorer and Class View,…and it shows that we currently have two areas of macros.…The top one is my RecordingModule--…we'll look at that in a minute--and at the bottom we have this Samples module.…

Resume Transcript Auto-Scroll

Author

Released

11/16/2010

In Visual Studio 2010 Essential Training, author Walt Ritscher demonstrates how to use Visual Studio 2010 Professional to develop full-featured applications targeting a variety of platforms. Starting with an overview of the integrated developer environment, the course covers working with code editors, navigating and formatting code, and deploying applications. Also included are tutorials on running performance and load tests, and debugging code. Exercise files accompany the course.