JetBrains Rider
 
Get JetBrains Rider
Get your hands on the new features ahead of the release by joining the Early Access Program for Rider 2025.1! Learn more

Generate Properties

Last modified: 25 September 2024

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 AltEnter on any of the properties:

'Convert to auto-property' quick-fix