AS修改系统生成注解中的用户名

xiaoxiao2021-02-27  165

AndroidStudio中创建类会自动生成注解,如下:

/** * Created by Administrator on 2017/6/18. */

修改Administrator为自己的名字: AndroidStudio找到File —》Settings—》Editor—》File and Code Templates,在右侧Includes找那个选择File Header,修改${user}为自己的名称,选择OK。 eclipse找到java—-code style—-code templates里面commentes—-types同样修改user。

原来的${user}代表的就是计算机系统的用户名,所以修改这个就可以了

转载请注明原文地址: https://www.6miu.com/read-13590.html

最新回复(0)