Here is the situation. I have the following Java code:
String a;
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?
This inserts the semicolon at the end of the line, but you still have to type it :
Preferences > Java > Editor > Typing > check "semicolons"
Still, better than nothing.
See this link.
"The preference is disabled by default, so you have to enable it. Go to Window > Preferences > Java > Editor > Typing. Then enable Semicolons under the section Automatically insert at correct position.
Now when you press semicolon from anywhere in a statement, Eclipse adds a semicolon to the end of the line and places the cursor right after the semicolon so you can start editing the next line."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With