DXCore Services – Strings
The Strings DXCore service manipulates DXCore string providers. It has methods that expand and format string providers for further expansion inside the code editor using the DXCore plug-ins.
The Strings DXCore service manipulates DXCore string providers. It has methods that expand and format string providers for further expansion inside the code editor using the DXCore plug-ins.
If you use the CodeRush code templates heavily, and they specify the author of the source code, you may find the IDE | User Info options page interesting. On this page, you can specify your first, last and middle name, and then use them inside the text expansions, for example, to create a file header and specify its author.
Here is the list of CodeRush comments-specific code templates. The templates below generate comments for code areas, tasks, and a few others (miscellaneous). Nearly all of these templates start with the “/” character (for CSharp) or ” ‘ ” (for Visual Basic). See these comments on the Editor | Templates options page in the Options Dialog.
To better understand template expansions, I recommend familiarizing yourself with a few common text commands that you can observe inside these expansions.
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: