Inside the Core 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

The Visual Studio core editor is a set of several components that let you modify and query textual information. If you have customized the core editor by using the legacy API, you may continue to use these customizations, which will be routed through editor adapters. It is recommended, however, that you adapt your customizations to the new editor API.

The following areas are some important aspects of the core editor:

  • Text buffer

  • Text view

  • Code window

  • Text markers

  • Text manager

  • Integration with language services

In This Section

Instantiating the Core Editor By Using the Legacy API
Provides step-by-step instructions about how to use CreateEditorInstance to create an instance of the core editor.

Accessing the Text Buffer by Using the Legacy API
Discusses the text buffer's role in the core editor, explains the associated systems that are used to access the buffer, and provides a list of the interfaces implemented by the text buffer object, VsTextBuffer.

Text Buffer Events in the Legacy API
Provides a list of the interfaces that are used for notification of text buffer events.

How to: Register for Text Buffer Events with the Legacy API
Describes how to advise text buffer events.

Using the Text Manager to Monitor Global Settings
Discusses how the text manager is used to share global preference information with the core editor components and how to receive notification of text manager events.

Accessing theText View by Using the Legacy API
Describes the text view's role in the core editor and lists the interfaces implemented by the VsTextView object.

Customizing Code Windows by Using the Legacy API
Provides information about how a code window is used to enclose the text view, discusses how the code window manager is used to provide decorations to the code window, and provides notification of new views.

Changing View Settings by Using the Legacy API
Provides step-by-step instructions about how to force view settings and how to remove forced settings.

Language Services and the Core Editor
Describes the instantiation of a language service to control code decorations.

Walkthrough: Creating a Core Editor and Registering an Editor File Type
Provides step-by-step instructions about how to start the core editor from managed code.

Drop-down Bar
Discusses how the drop-down bar is used in the code window and describes the interfaces that are used when you implement a drop-down bar.

Using Text Markers with the Legacy API
Explains the concept of text markers and how they are used in the core editor, and lists the interfaces that are used to access and manage text markers.

How to: Add Standard Text Markers
Provides step-by-step instructions about how to create a text marker and how to add a custom command to a shortcut menu.

How to: Create Custom Text Markers
Provides step-by-step instructions about how to create a custom text marker and how to provide the marker type as a service.