我怎样才能阻止 Eclipse 帮助我并覆盖“结束”的内容?钥匙呢?
Eclipse 再次发挥作用,但我希望它停止。情况是这样的:
- 它自动补全一个函数名,为
foo()
,并且由于需要一个参数,光标现在位于()
之间。 - 我填写了参数,并且由于该行在行尾仍需要分号,因此我按 End 键。
- 光标跳到行尾(在右括号之后),然后按 ; 键。
- Eclipse 很愚蠢,跳回括号,选择我的参数,并将其替换为分号。
结果:foo(;)
为什么要这样做,我该如何阻止它? Eclipse 在这里做了一些荒谬的事情,这已经够糟糕的了,但我什至无法解释它想要实现的目标是什么!
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 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!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
按Return/Enter而不是End。然后 Eclipse 将跳转到该行末尾以供您插入分号。
Press Return/Enter instead of End. Eclipse will then jump to the end of the line for you to insert your semicolon.