Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以在eclipse中添加标签字段
private static final String TAG = "MyClass";
自动到每个新创建的类。输入它没什么大不了的,但自动添加它肯定会增加我添加日志信息的纪律 ......
谢谢
是的,可以转到窗口 - 首选项
所以新创建的文件会有这一行。
但如果你做它会更有用
然后在代码中打印mytag并按 Ctrl + Space
一些改进。您可以在标签中使用“enclosure_type”变量:
private static final String TAG = "${enclosing_type}";