Android Studio Modify File Header

    xiaoxiao2021-03-25  37

    Some times we need to modify file header as to add more detail or styled info in each class or file we created.

    In order to add the created file date and time, author name and project name, we can change file header which in the File and Code Templates category. Then, we can modify it use the default variables and custom variables.

    #set( $USER = "Your name" ) #set ($USER = "Name name") #set ($COMPANY = "company Ltd") #set ($EMAIL = "example@gmail.com")

    My personal setting is shown below.

    #set ($USER = "YorkYu") #set ($VERSION = "V1.0") #set ($DESP = "description") /** * @author: ${USER} * @version: ${VERSION} * @project: ${PROJECT_NAME} * @package: ${PACKAGE_NAME} * @description: ${DESP} * @date: ${DATE} * @time: ${TIME} */

    Reference

    Change Author template in Android StudioAndroid Studio使用之 – 更改FileHeader
    转载请注明原文地址: https://ju.6miu.com/read-150075.html

    最新回复(0)