Eclipse is being helpful again, and I want it to stop. The situation is this:
- It auto-completes a function name, to
foo()
, and because takes an argument, the cursor is now between the()
. - I fill in the argument, and because the line still needs a semicolon at the end of line, I press the End key.
- The cursor jumps to the end of the line (after the closing paren), and I press the ; key.
- Eclipse is being dumb, jumps back into the parens, selects my argument, and replaces it with the semicolon.
Result: foo(;)
Why is it 开发者_C百科doing this, and how do I stop it? It's bad enough that Eclipse is doing something ridiculous here, but I can't even explain what it is that it is trying to achieve!
Press Return/Enter instead of End. Eclipse will then jump to the end of the line for you to insert your semicolon.
精彩评论