How to make a snippet/template in Eclipse IDE

Nafiul Islam · 21K views · 2013 · 2:54

Open on YouTube

Testing, debugging & developer toolstutorialdated

Why Stack Overflow recommends it

Stack Overflow users link it when answering or asking how to store reusable code snippets in Eclipse, since Eclipse calls them templates and the menu is hard to find.

Recommended by 2 people across 2 different months, 2012 to 2015.

What it is

A short screencast showing how to create and use snippets, which Eclipse calls templates, in Eclipse Juno 4.2. The presenter, Nafiul Islam, walks through the setup on screen.

What people said

Recommends Paul Sweatte · 2012-08 · Stack Overflow · on “Eclipse and Node.Js debugging”

Use a snippet [this video] or a plugin [LINK] to consolidate the commands into a single button press and eliminate the tedium.

Recommends Nafiul Islam · 2013-03 · Stack Overflow · on “Storing code snippets in eclipse”

I found a good video tutorial on how to make a snippet in Eclipse, its actually called a template there : [this video]

Cites Saju · 2015-07 · Stack Overflow · on “Unable to create PHP snippets and templates with eclipse Luna”

I am using Eclipse Luna with WDT & PDT installed. I has seen this tutorial [this video] on creating code snippets. But in my eclipse I cant see the menu or buttons to create new snippets. Do I need to install any specific plugins for this? Screenshots attached below. Snippets [LINK] Templates [LINK] [LINK] [LINK]