If you omit the modifier on a class it is either:
- internal (non-nested classes)
- private (on nested classes)
I just thought I'd throw that out there (that it's not ALWAYS internal if omitted).
But, if you really want to change templates you'll want to generally go to the installation folder (I'll use the default folders):
*C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE*
In there, you will find the various template folders. You're looking for the following (if you dig deeper): C:\Program Files\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplates\CSharp\Code\1033\Class.zip
Just alter the Class.cs file in there. Oh, and in case you mess it up here's the original version:
using System;
using System.Collections.Generic;
$if$ ($targetframeworkversion$ >= 3.5)using System.Linq;
$endif$using System.Text;
namespace $rootnamespace$
{
class $safeitemrootname$
{
}
}
You're desired version:
using System;
using System.Collections.Generic;
$if$ ($targetframeworkversion$ >= 3.5)using System.Linq;
$endif$using System.Text;
namespace $rootnamespace$
{
public class $safeitemrootname$
{
}
}