Core Editor
The Visual Studio core editor is a set of several components that let you modify and query textual information. Because you can customize the existing core editor, you do not have to design and implement a full-fledged editor or edit control of your own in your VSPackage implementation. The following are the primary components of the core editor:
Text buffer
Text view
Code window
Text marker
Text manager
Language service
In This Section
Instantiating the Core Editor
Provides step-by-step instructions about how to use CreateEditorInstance to create an instance of the core editor.Text Buffer for the Visual Studio Editor
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
Provides a list of the interfaces that are used for notification of text buffer events.How to: Advise Text Buffer Events
Describes how to advise text buffer events.Text Manager in Visual Studio
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.Text View in Visual Studio
Describes the text view's role in the core editor and lists the interfaces implemented by the VsTextView object.Code Windows
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.Forcing View Settings
Provides step-by-step instructions about how to force view settings and how to remove forced settings.Language Service and the Core Editor
Describes the instantiation of a language service to control code decorations.
Related Sections
Figures Sample
Demonstrates how the Figures sample collection creates a complete product for the Visual Studio integrated development environment (IDE) and provides links to projects that must be built in the FigPkg sample.Walkthrough: Invoking the Core Editor
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.Text Markers in the Editor
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.Editors
Introduces the different types of editors Visual Studio provides and explains how you can create custom editors.