The Type Initializers options page enables you to specify the default values for a certain type of initialization.
The options page includes the following options.
Take descendant initializers into account
Specifies whether the Initialize code provides only the current type initializers or descendant type initializers as well.
Use type initializers
Specifies whether CodeRush Classic uses the type initializers specified via this options page or initializes variables, fields and properties with the default type values.
The field at the bottom of the options page lists types and values used to initialize these types.
The table at the left side of the field lists the types for which you want to define default initializer values. Use the New and Delete buttons to add a type or remove the selected type appropriately.
The table at the right part of the field specifies the list of initializer values for the selected type. To add a value, click the button and specify the value via the text box located at the bottom. Press the button to delete the selected value.
The order of the values on the options page affects their order in the Initialize code provider sub menu and in the Intellisense. Use the arrow buttons to move the selected value up and down within the value list.
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.