0

There is a very useful "Clips" feature in Coda, does Eclipse have such feature?

What it does is pretty simple, you save a code clip once, which you use very often and assign it a shortcut and when you want to re-use you type the shortcut and it automatically pastes it and sets the caret at the defined position.

e.g. when I type 4dom and press TAB it types this:

jQuery(function($){
    //puts cursor here
});

so, how do you do this in Eclipse?

Sinan
  • 11,443
  • 7
  • 37
  • 48

2 Answers2

2

In Eclipse they are called Templates. You can find this in Window->Preferences then JavaScript/Editor/Templates.

It will allow you to create or edit.

CDSO1
  • 297
  • 3
  • 11
  • Thanks but i couldn't find the way how to add a new template and how to use them, is it correct where i landed http://drp.ly/QSF5N ? – Sinan Apr 20 '10 at 16:11
1

Similar function in Eclipse is called Snippets. Find it by doing this: click on Window > Show View > Other > General > Snippets

cfphpflex
  • 593
  • 5
  • 8