Working with text editor

Skip to end of metadata
Go to start of metadata

Visual Studio text editor is represented in ReSharper as an instance of JetBrains.ReSharper.TextControl.ITextControl interface. This interface provides means to access caret, selection and scrolling positions, add various highlighters etc.

To obtain the text control your action have been invoked in, query data context for DataConstants.TEXT_CONTROL data constant.

You may also open specific project file in text editor by using JetBrains.ReSharper.EditorManager.EditorManager:

Also, EditorManager provides various API to work with opened editors: you can activate particulat text control, query for existing editor for a project file etc.



Samples and power toys

The license could not be verified: There is no license certificate installed for CustomWare Linking Plugin for Confluence.

  • No labels