Is there a way in Visual Studio 2010 to add a new file (class) to a project that inherits from an existing base class, abstract or otherwise? This seems like a simple concept but I can’t find a way to do it.
I’d like to be able to for example right click a class name in the IDE and and select “add new inheriting class” or something similar. Just one of those things that would save a lot of repetition. Ideally it would implement (generate stubs) for abstract members, etc.
Does anyone know a way to do this either through stock VS2010 or ReSharper? I’ve dug through both and can’t find anything. Interestingly enough, Resharper will allow for generating a superclass, but not a subclass..
I don’t think it’s actually faster to right click -> add base class then to add a class file and type : Base behind it.
If you want to implement an abstract class you can right click on the base class and select “Implement Abstract Members”
You can also use the Class Diagram tool (right click a project and select View Class Diagram) then add a class and drag an inheritance arrow from the toolbox onto it.