Here are a few examples of how you can generate code with code completion.

Overriding and implementing members

In the example below, code completion helps create an override for a virtual member from a base class. Start typing the method name to ger the suggestion to override it in the current type: After you accept the suggestion, the method body with the default implementation expands in the editor:

Properties for fields

To generate properties for a field, start typing the name of the field. ReSharper will suggest to create a read-only or a read-write property with the corresponding name according to your naming style:

After you accept the suggestion, the property body expands in the editor:

Type constructors

Depending on the existing members of the current type, ReSharper suggests different constructors in the completion list. To create a constructor, type ctor. In the completion list, you may see the following suggestions:

ctor - a constructor without parameters

ctorf - a constructor that initializes all fields

ctorp - a constructor that initializes all properties

ctorfp - a constructor that initializes all fields and properties

In the example below, all kinds of constructors are available.

If you accept the ctorfp suggestion, the constructor expands in the editor: