有没有办法阻止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
Run Code Online (Sandbox Code Playgroud)
这是模板:
#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
Run Code Online (Sandbox Code Playgroud)
你应该创建没有//的模板,它应该只包含
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$
Run Code Online (Sandbox Code Playgroud)
然后在"将文件标题包含到带名称的区域"字段中(在文件模板下面),您应该编写
Copyright © $CURRENT_YEAR$ xxx Systems, Incorporated
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
926 次 |
| 最近记录: |