How to: Manage Macros
Macro Explorer is the main tool for tracking and managing macros. Is it the main Visual Studio? 0? You can view the windows in 2.NET Integrated Development Environment (IDE) by pressing Alt+F8. For more information about the parts of Macro Explorer, see Macro Explorer Window. The main tasks related to managing macros are: creating new macro projects and modules. Load and unload existing macro projects. Delete macro projects and modules. Rename macro projects, modules, and commands. Edit commands or modules can save macros as binary or text files. Binary is the default format for macros, using. Vsmacros extension. However, you can also choose to save the macro as Unicode text (. txt)。 Saving macros as binary files can easily distribute multiple macros in a project as one file. Saving a macro as a text file allows you to do other things, such as opening a file outside Visual Studio, copying commands from the file, and then sending the commands to someone by e-mail. By default, macros are stored in \VSMacros80 in the directory specified by the Visual Studio Project Location text box (located in the Projects and Solutions node of the Options dialog box). However, you can change Visual Studio in the options dialog box. 0? The location path of the 2.NET project, or press Ctrl+E to export the macro to another location. Macro Management For all the following tasks, if the Macro Explorer is not displayed, press Alt+F8 to display it. Create a new macro project or module in Macro Explorer To create a new macro project, right-click the macro node and select New Project. Note that macro projects can only be created in Macro Explorer. You cannot create macro projects in the macro IDE. To create a new macro module, right-click the project and select New Module. Load an existing macro project in Macro Explorer. Right-click the macro node and select Load Project. Browse to the macro project file and select Open. Uninstall a macro project from Macro Explorer. Right-click the macro project you want to uninstall, and then select Uninstall Project. Please note that when you uninstall the project, its security settings will be lost. For more information, see Macro Security and Access Issues. Delete a macro module or command from Macro Explorer, select the item and press the delete key. -or-Right-click it and select Delete. Pay attention to using Windows Explorer to delete the project file. Delete a macro project from Macro Explorer. Right-click it and select Uninstall. Pay attention to using Windows Explorer to delete the project file. Rename a macro project, module or command To rename a macro project, module or command, right-click it and choose Rename. Type a new name, and then press Enter. Note that renaming a module affects the module declaration in the file, but renaming a project does not affect the default namespace. In addition, if you rename a macro project, module or command in the macro IDE, these changes will not be reflected in the Macro Explorer or Project Explorer. Macro references are still based on the namespace declared in the module, so trying to reference macros based on the new project name will lead to compilation errors. For information about how to edit macro modules or commands, see How to: Edit Macros Programmatically and Create Macros.