How to change the default value using the lines at the top of each class

Whenever I create a C # class in Visual Studio, it has the following lines at the beginning of the file:

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

I want it to have other default namespaces when I create a new C # class. How can i do this?

+4
source share
1 answer

Create a template for visual studio:

http://msdn.microsoft.com/en-us/library/6db0hwky(v=vs.90).aspx

EDIT: you can modify an existing template by downloading it, making the necessary changes, and then using the export template option (in the file menu) and follow the instructions in the wizard to select the necessary parameters.

:, #:

C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\ItemTemplates\CSharp\Code\1033\Class

VS2012

+4

Source: https://habr.com/ru/post/1529970/


All Articles