Reputation: 11563
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?
Upvotes: 0
Views: 474
Reputation: 603
Similar function in Eclipse is called Snippets. Find it by doing this: click on Window > Show View > Other > General > Snippets
Upvotes: 1
Reputation: 297
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.
Upvotes: 2