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 以创建具有默认字符串的类作为第一行
public static Logger logger = Logger.getLogger(MyClass.class.getName());
每当我在eclipse中创建一个新的java文件时
属性 -> Java 代码样式 -> 代码模板。
您可以使用经过调整的新类模板来做到这一点。
您可以在Java->Code Style->Code Templates下的 Preferences 中找到它,然后切换到对话框的右侧并选择Code->New Java files