Eclipse Java开发-自动为每个新类添加一个私有的静态最终String TAG [英] eclipse java development - adding a private static final String TAG automatically to each new class

查看:122
本文介绍了Eclipse Java开发-自动为每个新类添加一个私有的静态最终String TAG的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在Eclipse中添加标签字段

Is it possible in eclipse to add a tag field

private static final String TAG = "MyClass";

自动为每个新创建的类。键入它没什么大不了,但是自动添加它肯定会增加我的添加日志信息学科 ...

automatically to each newly create class. Not a big deal to type it but having this automatically added would definitely increase my adding log info discipline ...

谢谢

推荐答案

是的,可能
转到窗口-偏好

Yes, it is possible Go to Window - Preferrences

因此,新创建的文件将具有此行。

So newly created files will have this line.

但是如果您使

But it will be more useful if you make

然后在代码中只需打印 mytag ,然后按Ctrl +空格

then in code just print mytag and press Ctrl + Space

这篇关于Eclipse Java开发-自动为每个新类添加一个私有的静态最终String TAG的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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