使用 StyleCop 在文档标题中添加作者姓名 [英] Adding Author Name in document Header using StyleCop
问题描述
我在 Visual Studio 中使用 StyleCop.每当我添加一个新文件时,它都会添加一些信息,例如公司名称、版权详细信息.我还想添加作者姓名和创建日期.是否可以在某处更新 StyleCop 设置以支持这一点?
I am using StyleCop with Visual Studio. Whenever i add a new file it adds few information like company name ,copyright details. I want to add author name and creation date also .Is it possible to update the StyleCop Setting somewhere to support this ?
推荐答案
在他们之间你被排序;)
Between them you are sorted ;)
因此,您为项目创建了一个 stylecop 设置文件(右键单击项目 -> stylecop 设置),然后将其复制到解决方案根目录中,所有项目基本上都将从中继承其 stylecop 设置.
So you create a stylecop settings file for a project (right click on project -> stylecop settings) then copy it into solution root and all the projects will basically inherit their stylecop settings from it.
这篇关于使用 StyleCop 在文档标题中添加作者姓名的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!