Take the 2-minute tour ×
Programmers Stack Exchange is a question and answer site for professional programmers interested in conceptual questions about software development. It's 100% free, no registration required.

Myeclipse's java code templates like sysout make coding easier, and they can also be customized. But seems it's jsp editor has no such capability.

Is it possible to create and customize some templates like sysout in myeclipse jsp editor, and if yes, how?

share|improve this question
add comment

1 Answer 1

Yes.
Go to:
MyEclipse->Preferences->MyEclipse->Files , and
Editors->JavaScript->Editor->Templates.

There you can see the existing templates that work in a similar manner to the Java templates. If the context is JavaScript then they'll be available when editing JavaScript. To get the code to automatically be inserted when you enter the template name then hit Ctrl+Space, ensure the name is unique and that no other template name starts with the same characters and ensure the Auto Insert flag is also set.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.