Automatic Declaration

CodeRush provides a set of tools used to generate declarations of elements in the code editor.

You can use a declaration template to declare an element with only a few keystrokes. For instance, to declare a method returning a string value, you should type "ms" and press space.

msTemplate

Another method of automatic declaration is to use an appropriate code provider. This allows generating a declaration of an undeclared referenced element.

DeclareClassCodeProvider