Creating and Using a Macro

Keyboard:  CTRL + SHIFT + R (record/stop recording); CTRL + SHIFT + P (run)Menu:  Tools -> Macros -> Record Temporary Macro; Tools -> Macros -> Run Temporary Macro; Tools -> Macros -> Save Temporary MacroCommand:  Tools.RecordTemporaryMacro; Tools.RunTemporaryMacro; Tools.SaveTemporaryMacroVersions:  2008,2010Published:  12/2/2010Code:  vstipEnv0055   You can record macros to do just about anything in Visual Studio.  In…


Create a Shortcut Key for a Macro

Menu:  Tools -> Options -> KeyboardCommand:  Tools.CustomizeKeyboardVersions:  2008,2010Published:  8/7/2010Code:  vstipTool0066   We covered creating shortcuts in vstipTool0063.  Assuming you have a macro you would like to attach a shortcut key to, you can easily make your macros accessible.  Let’s do an example to show you how.  First, go to Tools -> Options -> Keyboard :…