Change Author template in Android Studio

前端 未结 7 1097
盖世英雄少女心
盖世英雄少女心 2020-12-22 17:43

I want to change the automatic author that appears when I create a file in AndroidStudio.

/**
 * Created by a556520 on 16/01/14.
 */
public class POI {
         


        
7条回答
  •  粉色の甜心
    2020-12-22 18:09

    • Open Android Studio Preferences dialog.
    • In the search box, write "File and Code Templates".
    • Select the left menu item "File and Code Templates".
    • From the middle tabular navigation section, select Includes.
    • Select File Header item that applies to the Java files.
    • You will find an editor section that allow you to edit it for the required pattern. Use the description section below to understand the different parameters that can be used.
    • Set the properties first. #set ($USER = "Your name") #set ($COMPANY = "Your company") #set ($EMAIL = "Your email")

      /**Created by ${USER} on ${DAY},${MONTH_NAME_FULL},${YEAR} ${COMPANY} ${EMAIL} **/

提交回复
热议问题