[英]Customize eclipse new class template
I want Eclipse to put following comments when ever I create a new class. 我希望Eclipse在创建新类时添加以下注释。 How to create a template like this?
如何创建这样的模板?
// ===========================================================
// Constants
// ===========================================================
// ===========================================================
// Fields
// ===========================================================
// ===========================================================
// Constructors
// ===========================================================
// ===========================================================
// Getter & Setter
// ===========================================================
// ===========================================================
// Methods for/from SuperClass/Interfaces
// ===========================================================
// ===========================================================
// Methods
// ===========================================================
// ===========================================================
// Inner and Anonymous Classes
// ===========================================================
Window - Preferences - Java - Code Style - Code Templates - Class Body - Edit 窗口 - 首选项 - Java - 代码样式 - 代码模板 - 类主体 - 编辑
Typing "Templates" in the search box above the tree of the preferences window is a good way to find what you're looking for 在首选项窗口树上方的搜索框中键入“模板”是查找所需内容的好方法
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.