Thursday, September 19, 2013

Adding Snippets to Eclipse

This blog moved to a new location, please visit us at http://ramble.m2m.at.

The problem: You want/need to add/use the same code pieces again and again

You could just copy and paste, which becomes tedious when you have different pieces ...

... or you could yous the snippets plugin which you can access via
 -> Window -> Show View -> Other ... -> General -> Snippets
 ... if it is not already there, install it. Go to
-> Help -> Install New Software ...
choose the site of your current eclipse version and select inside
Web, XML, Java EE and OSGi Enterprise Development
the plugin
Eclipse Web Developer Tools
Click all the necessary "next", "I agree", and "finish" buttons ... finally restart eclipse ...

Add new snippets using the right mouse button and selecting "cusotmize".

No comments: