These namespaces are added per default when a class is created:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
I want to modify existing projects or my custom project template so that additional usings are added when a new class is created.
(Instead of having to add them manually for every class. Sure, “CTRL + .” works to add namespaces for classes, but it do not work for extension methods.)
Go to
%ProgramFiles\Microsoft Visual Studio 10.0\Common7\IDE\ItemTemplatesCache\CSharp\Code\1033\Class.zip\and editClass1.csand other files by analogy.Also see
%ProgramFiles\Microsoft Visual Studio 10.0\Common7\IDE\ProjectTemplatesCache\..I understand your question. You want the same behavior as Visual Basic project properties – Imports brings.
For C# – this is not possible.