ReSharper Web Help

ReSharper | Options | Code Editing | Members Generation

This page of ReSharper options allows you to adjust code generation settings. For more information, see Code Generation.

Item Description
Generated member default body style This setting allows you to choose what ReSharper will include in the bodies of generated members.
  • Throw new NotImplementedException()
    When this option is selected, ReSharper throws NotImplementedException() in bodies of generated members.
  • Return default value
    When this option is selected, ReSharper creates default value return statement in generated members, according to return type:
  • Not compiled code
    When this option is selected, ReSharper fills bodies in generated members with symbols that prevent compilation:
Generated property style This setting defines how properties are generated for implementing and overriding members
  • Automatic property
  • Property with backing field
  • Accessors with default body
    The default body is generated depending on the Generated member default body style setting described above.


If necessary, you can override this setting for all or some properties when applying the corresponding code generation commands.

Other options
Copy XML documentation from overridden members When selected, allows copying XML doc comments from the overridden members to the generated overriding members.
Wrap generated members in regions Groups overriding and implemented members within regions with names describing the generated content, e.g. Overrides of [name of base class] and Implementation of [name of base interface].
Annotate property accessors with [DebuggerStepThrough] When selected, adds the DebuggerStepThrough attribute to getters and setters of generated properties to prevent debugger from stepping into the property accessors.


ReSharper's settings are saved in settings layers that enable you to have different settings for different solutions as well as to share your settings with your team. To learn more, study the Managing and Sharing Options section.

See Also