I recently noticed that Visual Studio 2010 (Professional) automatically inserts FileHeader into new class files. I do not know when it started, but some time ago it was not included. In addition, since then using directives have been added after the namespace.
This is what the file looks like after generation:
// ----------------------------------------------------------------------- // <copyright file="Class1.cs" company="Microsoft"> // TODO: Update copyright text. // </copyright> // ----------------------------------------------------------------------- namespace MyNamespace { using System; using System.Collections.Generic; using System.Linq; using System.Text; /// <summary> /// TODO: Update summary. /// </summary> public class Class1 { } }
And this is how it should look (and how I want it):
using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace MyNamespace { public class Class1 { } }
I disabled all extensions and all plugins, but the problem remains. I hope someone can explain to me how to restore the previous behavior.
Thanks in advance
visual-studio-2010
Jan-Patrick Ahnen
source share