Tag Archives: eclipse

By nathanmac87 (Confetti Uploaded by Anastasiarasputin) [CC-BY-2.0 (http://creativecommons.org/licenses/by/2.0)], via Wikimedia Commons

Adding Snippets to Eclipse

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”.


Flattr this!