문제

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?

도움이 되었습니까?

해결책

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.

다른 팁

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

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top