Shudy Shudy - 3 years ago 151
Android Question

Change Author template in Android Studio

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 {

The author takes 'a556520' but I want that appears my name, and not the number of employee. Is that possible?
I didn't find in the settings.

Answer Source

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

#set( $VARIABLE = "value")

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

#set( $USER = "Your name" )
* Created by ${USER} on ${DATE}.
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download