Managing Visual Studio from the Command Window

Team-Fly    

 
Visual Basic .NET Unleashed
By Paul Kimmel
Table of Contents
Chapter 4.  Macros and Visual Studio Extensibility

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.

graphics/04fig08.jpg

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
 


Visual BasicR. NET Unleashed
Visual BasicR. NET Unleashed
ISBN: N/A
EAN: N/A
Year: 2001
Pages: 222

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net