JetBrains Rider provides a variety of ways to generate boilerplate code. For example, you can use undeclared code symbols and automatically generate these symbols based on usages, generate type members, and more.
In this section:
- Generate Code from Usage
- Generate Null-Checking Routines
- Generate Code with Code Completion
- Generate GUIDs
- Generate Type Members
You can control how new code is generated in two major ways:
Depending on your settings, stubs for new members can be generated in different ways. For example, they can throw new
NotImplementedException(), return default value, or include code that will not compile. You can configure these and other preferences on the page of JetBrains Rider settings Ctrl+Alt+S.