Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/csharp/329.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
C# Resharper文件头是双注释的_C#_Resharper - Fatal编程技术网

C# Resharper文件头是双注释的

C# Resharper文件头是双注释的,c#,resharper,C#,Resharper,是否有任何方法可以防止对Resharper插入的文件头进行双重注释 我正在使用默认的文件头模板,并在代码清理中启用了“插入文件头” (Resharper 7.1.2版) 以下是模板: #region Copyright © $CURRENT_YEAR$ xxx Systems, Incorporated // // All rights are reserved. Reproduction or transmission in whole or in part, in // any form o

是否有任何方法可以防止对Resharper插入的文件头进行双重注释

我正在使用默认的文件头模板,并在代码清理中启用了“插入文件头”

(Resharper 7.1.2版)

以下是模板:

#region Copyright © $CURRENT_YEAR$ xxx Systems, Incorporated
//
// All rights are reserved. Reproduction or transmission in whole or in part, in
// any form or by any means, electronic, mechanical or otherwise, is prohibited
// without the prior written consent of the copyright owner.
//
// Filename: $FILENAME$
// Date:     $CURRENT_DAY$/$CURRENT_MONTH$/$CURRENT_YEAR$
// Author:   $USER_LOGIN$
// 
#endregion

您应该创建不带//的模板,它应该只包含

All rights are reserved. Reproduction or transmission in whole or in part,
any form or by any means, electronic, mechanical or otherwise, is prohibited
without the prior written consent of the copyright owner.

Filename: $FILENAME$
Date:     $CURRENT_DAY$/$CURRENT_MONTH$/$CURRENT_YEAR$
Author:   $USER_LOGIN$
然后在“将文件头包含到名为的区域”(就在文件模板下方)字段中,您应该编写

Copyright © $CURRENT_YEAR$ xxx Systems, Incorporated

您应该创建不带//的模板,它应该只包含

All rights are reserved. Reproduction or transmission in whole or in part,
any form or by any means, electronic, mechanical or otherwise, is prohibited
without the prior written consent of the copyright owner.

Filename: $FILENAME$
Date:     $CURRENT_DAY$/$CURRENT_MONTH$/$CURRENT_YEAR$
Author:   $USER_LOGIN$
然后在“将文件头包含到名为的区域”(就在文件模板下方)字段中,您应该编写

Copyright © $CURRENT_YEAR$ xxx Systems, Incorporated

您想/需要这样做的任何特殊原因?标题模板中是否有注释符号(//)?如果是这样,也许你只需要删除它们?我在问题中添加了模板。你想/需要删除的原因有哪些?你的标题模板中是否有注释符号(//)?如果是这样,也许你只需要删除它们?我在问题中添加了模板。