Recording a Macro

The simplest way to create a macro is to record one: Just turn on Visual Studio’s macro recorder and perform a series of actions in the IDE. The macro recorder turns your IDE interactions into macro code.

To start recording a macro, select Tools, Macros, Record TemporaryMacro (or press Shift+Ctrl+R). This immediately starts the recorder; a small toolbar, as shown in Figure 14.1, appears at this point to enable you to control the recording.

Figure 14.1 The Macro Recorder toolbar.

image

The three buttons on the toolbar enable you to pause and resume the recording, stop the recording, or cancel the recording. Pausing the recording does ...

Get Microsoft® Visual Studio® 2010 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.