Android Studio常用配置

2021-12-26  本文已影响0人  星邪Ara

Logcat颜色配置

File -> Settings -> Editor -> Color Scheme -> Android Logcat

Assert:#8F0005
Debug:#0070BB
Error:#FF4444
Info:#48BB31
Verbose:#BBBBBB
Warning:#BBBB23

常用模版

File -> Settings -> Editor -> Live Templates
点击+添加一个模版组Template Group...
点击+ -> Live Templates 添加类注释模版
Define选择应用到那些语言




类注释

name
/**
 * Created by Name on $data$.
 * $content$
 */

一行注释

one line comment
/*** $content$ */

Dart注释

named
/// Created by Name on $data$.
/// $content$

TAG常量

tag
private static final String TAG = "$contnt$";

字符串常量

x string final
public static final String $name$ = "$contnt$";

int常量

x int final
public static final int $name$ = $contnt$;

自动导包

方法分割线

上一篇下一篇

猜你喜欢

热点阅读