Is it possible to change the template in Visual Studio 2010 so that the class definition is changed from:
class Class1
{
}
to:
public class Class1
{
}
When creating a new class via Add->Class in the context menu.
I would also ideally like to be able to create a class in one context menu click. I copy+paste existing class files to avoid the file dialog.
You could modify the following file:
It contains the template used when you add a new class. Inside the same folder you also have the template for interfaces:
Interface.zipso that they are public by default. IIRC a restart of VS is necessary to pick the changes.