views:

52

answers:

1

There is a very useful "Clips" feature in Coda, do we have such thing in Eclipse?

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

On the example here when i write 4dom and press TAB afterwards it types me this...

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

alt text

Since it is a very useful feature i miss that one on Eclipse, is there a plugin for this?

Thanks, Sinan.

+1  A: 

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
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 Y.
I updated my answer with the area to create new templates.
CDSO1
Thanks, i see it now, but i can't upvote more :)
Sinan Y.