Change Author template in Android Studio

前端 未结 7 1106
盖世英雄少女心
盖世英雄少女心 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:06

    You can overwrite the ${USER} variable in the template file with the

    #set( $VARIABLE = "value")
    

    function. Go to Settings -> Editor -> File and Code Templates -> Includes -> File Header prepend the #set() function call, for example:

    #set( $USER = "Your name" )
    /**
    * Created by ${USER} on ${DATE}.
    */
    

提交回复
热议问题