Copyright 编写

Copyright Profile Page

Use this page to configure the selected profile: define the copyright notice to be generated and specify the keyword to detect copyright notices in comments.

Item Description
Name Use this text field to view or edit the name of the selected copyright profile.
Copyright text (may contain Velocity templates) Use this text area to view or edit the copyright notice to be generated. A copyright profile can contain an explicit plain text of the copyright notice or its definition through a Velocity template.

Currently the following variables are available in the Velocity context:

Name Type Comment
$today DateInfo The current date and time.
$file.fileName String The name of the currently opened file where the notice is to be generated.
$file.pathName String The complete path and name of the currently opened file where the notice is to be generated.
$file.className String The name of the currently opened Java file where the notice is to be generated.
$file.qualifiedClassName String The fully qualified name of the currently opened Java file where the notice is to be generated.
$file.lastModified DataInfo The date and time when the current file was last changed.
$project.name String The name of the current project.
$module.name String The name of the current module.
$username String The name of the current user.
DateInfo has the following properties:
year int The current year.
month int The current month (1-12).
day int The current date of month (1-31).
hour int The current hour (0-11).
hour24 int The current hour (0-23).
minute int The current minute of the hour (0-59).
second int The current second of the minute (0-59).
DateInfo has the following method:
format(String format) String See java.text.SimpleDateFormat format options.
Validate Click this button to check that the Velocity template has been specified correctly.
Regex to detect copyright in comments Use this text box to type, view, or edit the regular expression that will be used to find copyright notices in comments.

This regular expression should match the above specified copyright notice. Otherwise instead ofupdating copyright notices, IntelliJ IDEA will insert new ones.

Allow replacing copyright if old copyright contains: Use this text box to type or edit the string that will be recognized in the existing copyright notice, and allow replacing it with the new one.
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值