The templates tree in the left part of the options page lists CodeRush Classic templates grouped into multiple categories and subcategories. Use the buttons over the tree view to create or remove categories and templates. You can also move the items within the tree.
The template search engine enables you to quickly find the desired template. Just type the character sequence contained in a template, to open a template containing these characters. Use the following buttons to move to the next search result:
- opens the next template whose key contains the specified characters.
- opens the next template whose expansion contains the specified characters.
The options of the selected tree view item are shown to the right of the tree view, and are dependent on the item type selected (category or template):
The following options are available for a templates category:
Specifies a comment to the selected category.
Specifies the action hint shown when a template contained in the selected category is expanded. You can also specify the action hint color.
Lists the templates contained in the selected category, excluding subcategories.
The following options are available for a template:
Specifies a comment to the selected template.
Specifies the template expansion. Besides custom text, expansions may include aliases, text commands, and string providers. You can add them via the context menu. The buttons over the field provide quick access to general text commands (Caret, BlockAnchor, Marker) and string providers (Paste).
Auto double equals ("==")
If this option is on, the template doubles the "=" sign, provided that this sign is the first sign of the expansion, and the template is expanded at the right part of an equality checking statement.
Suppress last character if present in code
Suppresses the last character if the same character follows the template in the code.
Auto line terminator
Adds the line terminator (semicolon in C) to the end of the expansion.
Turn this option on, if your template affects several files.
Disables Visual Studio formatting for the selected template.
Context in which the template is available.
Trigger this template with
Specifies the key used to activate the template. The available values are Space, Shift+Space, Enter.
Lists namespaces that should be added to the using section, when the template is activated, provided that they are not already added.
The Command combo box enables you to quickly choose the desired text command.
This product is designed for outdated versions of Visual Studio. Although Visual Studio 2015 is supported, consider using the CodeRush extension with Visual Studio 2015 or higher.
Was this page helpful?
Thanks for your feedback! Any other suggestions? Tell us here.