Android Studio创建类时添加作者和创建日期、时间等注释模板

点击File--->Setting--->File and Code Templates--->File Header  进行添加



除了添加以上的作者,日期外,还可以添加其他额外的信息,如下:

${PACKAGE_NAME} name of the package in which the new file is created

${USER} current user system login name

${DATE} current system date

${TIME} current system time

${YEAR} current year

${MONTH} current month

${MONTH_NAME_SHORT} first 3 letters of the current month name. Example: Jan, Feb, etc.

${MONTH_NAME_FULL} full name of the current month. Example: January, February, etc.

${DAY} current day of the month

${HOUR} current hour

${MINUTE} current minute

${PROJECT_NAME} the name of the current project

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • rljs by sennchi Timeline of History Part One The Cognitiv...
    sennchi阅读 12,160评论 0 10
  • pyspark.sql模块 模块上下文 Spark SQL和DataFrames的重要类: pyspark.sql...
    mpro阅读 13,150评论 0 13
  • 【青莲堂日话】160408 每日一话,是为日话 五个半月了,要暂离北京回到老地方了。此刻列车正在燕赵平原上驱驰,望...
    effelee阅读 1,118评论 0 0
  • 很多人都说九零后是垮掉的一代 说九零后对工作没有责任心;对自己的未来没有规划;离经叛道,不思进取 其实他们说的很对...
    猿兄阅读 2,372评论 0 1