Managing Visual Studio from the Command Window Visual Studio .NET has an extensive Automation Model that you can access through the Command window, macros, or by writing add-ins. There is a lot of information in the VS .NET Automation Model that you can access through the Command window, including the macros you write. (We will talk more about the Automation Model in the second part of the chapter, beginning after this section.) To run a macro you will need to open the Command window and access your macros via the Macros collection. For example, to run the macro created in the previous section, open the Command window in the VS .NET IDE and in command mode, type the complete path to the macro, Macros.MakeDirectory.Directory.MakeChapterDirectory (see Figure 4.8). Figure 4.8. Invoke macros using the Command window as shown, by typing the name of the macro.
You can use other aspects of the Automation Model in the same way. For example, to open the breakpoints window, type Debug.Breakpoints. IntelliSense works in the Command window, too, providing you with assistance in finding and invoking macros and using other Automation objects like the Debug object. |
Team-Fly |
Top |