Home > Backend Development > C#.Net Tutorial > Recommended examples of how to set copyright in VS2017

Recommended examples of how to set copyright in VS2017

Y2J
Release: 2017-05-04 10:45:22
Original
3446 people have browsed it

This article mainly introduces the method of setting copyright in Visual Studio 2017 in detail, which has certain reference value. Interested friends can refer to

How to set copyright in Visual Studio 2017. The specific content is as follows

1.VisualStudio2017 Set Copyright 

a In team development or company development, we generally like to give the classes or interfaces and OthersThe template sets the copyright statement, but it is very laborious to add each class one by one, so generally we set the template to implement it. When you create a class or interface in VS, etc. Automatically add these annotations to your class or interface.

b There are many ways to implement the function of this template on the Internet, but they are not very practical in VS2017, so here I briefly summarize the instructions for adding copyright to VS2017

c Me The copyright information for all my classes and interfaces is as follows:

//=============================================================
// Copyright (C) 2016-2100
// CLR版本:          $clrversion$
// 机器名称:          $machinename$
// 命名空间名称/文件名:    $rootnamespace$/$safeitemname$ 
// 创建人:               $username$   
// 创建时间:            $time$
// 网站:             http://www.chuxinm.com

 //==============================================================
Copy after login

2. How to set copyright in VisualStudio2017 

a First find your installationPath, if you forget your installation path, it doesn’t matter, you can use the following address to find it: Find the VS icon, right-click Properties: The pop-up will appear as shown in the figure:

b Find the address drawn by the red line in the picture, copy it, deleteremove the last devenv.exe, copy the path and then open my computer and copy it to the path address, open it as shown in the picture:

Recommended examples of how to set copyright in VS2017

c Continue to search, the path is as follows: (D:\Program Files (x86)\Microsoft Visual Studio\2017\Enterprise\Common7\IDE\ItemTemplates\CSharp\Code \2052), finally find the templates for classes and interfaces here, as shown in the figure:

Recommended examples of how to set copyright in VS2017

d Open the Class and Interface folders and copy the following .cs files Open it, copy the copyright into it, and click Save, as shown in the picture:

Recommended examples of how to set copyright in VS2017

e Next, we open it with Vs2017 and find that it has already implemented this function. If it is shown , this simple configuration is completed here.

Recommended examples of how to set copyright in VS2017

Every day is a little bit of progress

If there are any problems in the article, you are welcome to point it out and I will modify it as soon as possible.

The above is the detailed content of Recommended examples of how to set copyright in VS2017. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template