【发布时间】:2013-02-27 16:14:24
【问题描述】:
有什么办法可以防止Resharper插入的文件头被双注释。
我使用的是默认文件头模板,并在代码清理中打开了插入文件头。
(Resharper 版本 7.1.2)
// #region Copyright © 2013 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: xxx.cs
// // Date: 27/02/2013
// // Author: xxx
// //
// #endregion
这是模板:
#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
【问题讨论】:
-
您想要/需要的任何特殊原因?
-
您的标题模板中是否有注释符号 (//)?如果是这样,也许您只需要删除它们?
-
我将模板添加到问题中。