How do I get eclipse to automatically add a semicolon?

Here is the situation. I have the following Java code:

String a;

Right after I press the “.” I get the popup menu with the String methods. I choose one, fill in the arguments, but then I have to press the right-arrow key to get past the ) so I can type in the ;

In Emacs I used a macro (meta-Enter I think) which, when pressed, would add a semicolon to the end of the current line and then place me in the next line, at the proper indentation. Is there such a macro in eclipse?

Read more here: Source link