The TextCommands DXCore service provides access to registered text commands inside DXCore and allows you to format a text command to prepare it for expansion. Formatting of a text command means adding special characters defined in the Constants DXCore service to be able to expand it using the TextExpansions service. For example, to format the Caret text command, pass its name to the Format method:
CodeRush.TextCommands.Format("Caret")
and as a result, it will return: «Caret».
Read more…
The Outline DXCore service provides access to the editor outlining, allowing you to collapse, expand, and toggle outlining.
Here are its methods:
Read more…
At the moment, the ProjectItems DXCore service contains only the single Active property which returns the EnvDTE.ProjectItem instance for the active text document. Most likely, it will be populated with additional APIs related to ProjectItems, in the future.
—–
Products: DXCore
Versions: 10.2 and up
VS IDEs: any
Updated: Mar/17/2011
ID: D068
Resources service of DXCore contains shared resource images and drawing methods for use in plug-ins.
Methods of this service:
Read more…
File service provides methods for file reading, writing, and editing.
Methods of this service:
Read more…
This DXCore service provides methods and properties for manipulation of options pages and decoupled storages for persisting plug-in settings.
Read more…
Text Expansions DXCore service provides methods and properties for expanding dynamic text containing encoded text commands and/or string providers. CodeRush Templates is an example of such a feature. Note that the service is hidden from Intellisense.
One of the most important methods is “Insert” (with various overloads), which allows you to expand the text you prepared. All Insert methods return the SourceRange of the expanded text. For example, when you expand the “ai” template in CSharp (to create a new auto-implemented property), the following text is being expanded:
Read more…
Linked Identifiers are a built-in feature of DXCore, which allows you to simultaneously change similar pieces of the text (code) located in different places. The service provides access to the Linked Identifiers engine.
Read more…