gpt4 book ai didi

c# - Resharper 文件头有双重注释

转载 作者:太空宇宙 更新时间:2023-11-03 19:17:29 25 4
gpt4 key购买 nike

有什么办法可以防止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

最佳答案

你应该创建没有//的模板,它应该只包含

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

关于c# - Resharper 文件头有双重注释,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/15116893/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com