> I want to implement this function:
> when I write java code,I write the "Start" in one line.
> When I push "Enter" key,I want the "End" will be written
> in the next line.
> How can I finish this function?
Take a look at org.eclipse.jface.text.IAutoEditStrategy.