How to override the code generation for Generate > Class in VS 2010
I have read Why are my classes private by default in Visual Studio? and succcessfully used the advice given. Now if I invoke Add > New Item, > Class (or just Add > Class), I get the empty class created the way I want it (as a Public class, amongst other things).
However, if within my code I write the name of a non-existent class and then I right-click on it and invoke Generate > Class then the code that this generates is the old default code for a class - without my modifications. In other words开发者_如何学C, it appears that Generate > Class does not use the Class.zip template that is used when you do Add > New Item, > Class (or just Add > Class).
Can anyone tell me where the template (or other mechanism) for the code generated by Generate > Class is located?
Thanks.
精彩评论