Christopher Edwards
Christopher Edwards

Reputation: 6659

Visual Studio Shortcut for Automatically Creating Constructors from an Inherited Class

Say I am inheriting from a class with several "overloaded" constructors.

By any chance is there a short cut in Visual Studio which writes the constructors in the derived class with the same signatures as in the default class for me, with boilerplate code which calls MyBase.New(...) and plugs in the arguments for me?

EDIT: As far as I can find there is no such shortcut built-in, however there is one in resharper as suggested by Raymond.

Upvotes: 6

Views: 4365

Answers (1)

Raymond Roestenburg
Raymond Roestenburg

Reputation: 4890

I don't know about a shortcut in a standard Visual Studio installation, but if you install the excellent Resharper plugin from jetBrains, it is Alt-Insert, C. I don't develop without it.

Upvotes: 6

Related Questions