JetBrains Rider
 
Get JetBrains Rider
You are viewing the documentation for an earlier version of JetBrains Rider.

Generate Properties

Last modified: 30 September 2021

Code | Generate | Properties / Read-only Properties

Alt+Insert | Properties / Read-only Properties

JetBrains Rider will help you generate properties for all fields that you want to expose.

In the example below, this command is used to generate properties for _radius and _center fields.

This command generates properties leaving the original fields intact. If necessary, you can convert the generated properties to auto-implemented properties by pressing Alt+Enter on any of the properties:

'Convert to auto-property' quick-fix