Chapter 16. Extending the Code Editor

You have seen in the preceding chapter that Visual Studio Extension (VSIX) projects provide an easy way to extend the capabilities of the IDE with custom commands, custom tool windows, and overall broad and deep integration points into the Visual Studio shell. There is another set of options available to us with VSIX projects that target customizations and extensions of the code editor. These project items leverage something called the Managed Extensibility Framework (MEF).

MEF is actually a generic architecture pattern, application programming interface (API), and .NET class library for enabling easy “plug-in” extensions for any .NET application. Visual Studio allows for MEF-based extensions in the code editor and will likely embrace MEF more broadly across the entire IDE as time goes on.

This chapter introduces Microsoft’s MEF and how the framework can be applied to extend the Visual Studio code editor.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset