在 Android Studio 中更改作者模板 [英] Change Author template in Android Studio

查看:50
本文介绍了在 Android Studio 中更改作者模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想更改在 AndroidStudio 中创建文件时出现的自动作者.

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 {

作者采用a556520",但我希望出现我的名字,而不是员工人数.那可能吗?我在设置里没找到.

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.

推荐答案

您可以使用

#set( $VARIABLE = "value")

函数.转到设置 -> 编辑器 -> 文件和代码模板 -> 包含 -> 文件标题#set() 函数调用之前,例如:

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}.
*/

这篇关于在 Android Studio 中更改作者模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆