Predefined File Templates

ReSharper provides a number of predefined File Templates. Each representes a commonly used declaration, such as a class or an interface, which deserves to be stored in a separate file. This section describes each of these templates in detail. For details on how to invoke File Templates, see Using File Templates.

Click the name of a template in the list below to go to its description:

Abbreviation
Specification
class

Purpose

Creates a file in the specified namespace containing an empty class declaration.

Example of code after use

The class is named the same as the new file (user-specified when invoking the template).

The caret is placed so that you can write the class body.

interface

Purpose

Creates a file in the specified namespace containing an empty interface declaration.

Example of code after use

The interface is named the same as the new file (user-specified when invoking the template).

The caret is placed so that you can write the interface body.

struct

Purpose

Creates a file in the specified namespace containing an empty struct declaration.

Example of code after use

The struct is named the same as the new file (user-specified when invoking the template).

The caret is placed so that you can write the struct body.

For details on modifying predefined File Templates or creating your own, refer to Managing and Sharing File Templates.

See Also

Using File Templates | Managing and Sharing File Templates