View RSS Feed

My Java Tips

Eclipse Templates

Rate this Entry
by , 11-10-2011 at 05:30 PM (1048 Views)
Eclipse Templates are used to make programming easier and simpler. Eclipse IDE provides many templates by default which can be used to save time. Also one can add more templates as required. In this post, I will briefly write about creating and using templates in Eclipse.


Open the preferences window in Eclipse. Under Java > Editor you will find Templates. Click it and you will see the available templates in the right had side window.Name:  templates.PNG
Views: 247
Size:  21.6 KB
Making own template is also very simple. For instance you want to create a template to declare an ArrayLype bounded by String:

Java Code:
ArrayList arrayList = new ArrayList();
Simple go to preferences window and add a new template under Java > Editor > Templates.

Play around and explore more.

Submit "Eclipse Templates" to Facebook Submit "Eclipse Templates" to Digg Submit "Eclipse Templates" to del.icio.us Submit "Eclipse Templates" to StumbleUpon Submit "Eclipse Templates" to Google

Categories
Java SE

Comments