Add Missing Constructors
- 2 minutes to read
Adds all constructors declared in the parent types to the current class. Use this Code Provider to add all required constructors at once.
Available when the caret is on the name of the class, assuming it misses one or more inherited constructors.
Place the caret on a class name.
The blinking cursor shows the caret’s position at which the Code Provider is available.
- Press the Ctrl + . or Ctrl + ~ shortcut to invoke the Code Actions menu.
- Select Add Missing Constructors from the menu.
After execution, the Code Provider adds all missing constructors to the class.