Legacy Interfaces in the Editor

Note

This article applies to Visual Studio 2015. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

You can access the Visual Studio editor from legacy interfaces. The Visual Studio SDK includes adapters known as shims, which enable these interfaces to interact with the new editor. Nevertheless, we recommend that you update your legacy code to use the new editor API. Your code will perform better and you can use new technologies such as the Windows Presentation Foundation (WPF) and the Managed Extensibility Framework (MEF).

Title Description
Adapting Legacy Code to the Editor Explains how to adapt your code to the new editor.
New or Changed Behavior with Editor Adapters Explains how the behavior of the editor adapters differs from that of earlier versions of the editor.
Inside the Core Editor Describes the different components of earlier versions of the editor.
Instantiating the Core Editor By Using the Legacy API Explains how to use the legacy API to instantiate the core editor.
Editor Factories Explains how to use editor factories with the legacy API.
How to: Register Editor File Types Explains how to link a file name extension to your editor.
Walkthrough: Creating a Core Editor and Registering an Editor File Type Explains how to create a core editor and link a file name extension to it.
How to: Provide Context for Editors Explains how to provide context for your editor.
Language Services and the Core Editor Explains the interactions between a language service and an editor.
Accessing the Text Buffer by Using the Legacy API Explains how to access the text buffer by using the legacy API.
Accessing theText View by Using the Legacy API Explains how to access the text view by using the legacy API.
Customizing Code Windows by Using the Legacy API Explains how to customize code windows by using the legacy API.
Accessing Text Layers by Using the Legacy API Explains how to access different layers of text by using the legacy API.
Using Text Markers with the Legacy API Explains how to add text markers by using the legacy API.
Customizing Editor Controls and Menus by Using the Legacy API Explains how to customize editor controls by using the legacy API.
Managing Undo and Redo by Using the Legacy API Explains how to manage undo and redo by using the legacy API.
How to: Implement the Find and Replace Mechanism Explains how to manage find and replace by using the legacy API.
How to: Suppress File Change Notifications Explains how to suppress file change notifications by using the legacy API.
Creating Custom Editors and Designers Explains how to create custom editors and designers.
Developing a Legacy Language Service Provides links to documents about features that provide customization capabilities to the Visual Studio core editor by adding support for a language service.
Using Fonts and Colors Explains how to use fonts and colors with legacy interfaces.