Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Customize eclipse new class template

I want Eclipse to put following comments when ever I create a new class. How to create a template like this?

// ===========================================================
// Constants
// ===========================================================

// ===========================================================
// Fields
// ===========================================================


// ===========================================================
// Constructors
// ===========================================================



// ===========================================================
// Getter & Setter
// ===========================================================

// ===========================================================
// Methods for/from SuperClass/Interfaces
// ===========================================================



// ===========================================================
// Methods
// ===========================================================

// ===========================================================
// Inner and Anonymous Classes
// ===========================================================
like image 403
AZ_ Avatar asked Jul 11 '11 08:07

AZ_


1 Answers

Window - Preferences - Java - Code Style - Code Templates - Class Body - Edit

Typing "Templates" in the search box above the tree of the preferences window is a good way to find what you're looking for

like image 119
JB Nizet Avatar answered Sep 19 '22 18:09

JB Nizet