有没有更好的方法在Delphi .pas源文件中添加许可证/版权标题?

Cha*_*ang 2 delphi

每个Delphi的VCL源文件都有这样的标题:

{*******************************************************}
{                                                       }
{           CodeGear Delphi Runtime Library             }
{                                                       }
{ Copyright(c) 1995-2010 Embarcadero Technologies, Inc. }
{                                                       }
{   Copyright and license exceptions noted in source    }
{                                                       }
{*******************************************************}
Run Code Online (Sandbox Code Playgroud)

Delphi IDE或ModelMaker Code Explorer中是否有可用的工具/方法可以让我们更快地构建这个头图形?

Nic*_*ges 13

我会创建一个实时模板,让您自动填写所需的所有数据.

您可以在此处找到有关创建实时模板的更多信息:

http://delphi.wikia.com/wiki/Delphi_Live_Templates

实时模板非常强大且灵活.您可以让他们在代码编辑器中执行您想要的任何操作.


Moh*_*man 6

cnPack有一个很好的源模板选项,它允许你为Delphi和C++源文件插入单元头,也可以插入类头和过程头.


Fra*_*ois 5

您还可以使用GExperts中的Editor Experts中的Unit Header宏模板