简体   繁体   English

Eclipse Java编辑器中令人讨厌的自动扩展

[英]Annoying autoexpanding in Eclipse Java editor

Ladies and gentlemen, 女士们先生们,

writing Java code in the Java editor in Eclipse, I often encounter a very unpleasant and annoying behavior: folded blocks of code above or/and below the point I type in spontaneously and unexpectedly expand; 在Eclipse的Java编辑器中编写Java代码时,我经常会遇到一个非常不愉快和烦人的行为:折叠的代码块在我输入的点之上或之下的位置自然而然地发生了意外的扩展; sometimes a fragment of text around the input point collapses as if it was a block like a class body or a method, though actually it is not; 有时,输入点周围的文本片段会像是类主体或方法之类的块一样折叠起来,尽管实际上并非如此。 sometimes the text gets scrolled up or down or the scope changes otherwise, and I lose the point where I was typing in; 有时文本会向上或向下滚动,或者范围会发生其他变化,而我输了输入的地方; sometimes the cursor jumps to another point, and if I type on, I get something like 有时光标跳到另一点,如果我键入,我会得到类似

private Arra
public void foobar() {
}yList someMethod()...

Sometimes the text structure gets totally misinterpreted with the folding manager, and the only way to deal with it I've found is to restart Eclipse. 有时,折叠管理器会完全误解该文本结构,而我发现的唯一处理方法是重新启动Eclipse。

What is the reason of such a behavior and how can I get rid of it? 这种行为的原因是什么,我该如何消除呢?

Eclipse Lina (4.4.2), Windows 2003 server x64. Eclipse Lina(4.4.2),Windows 2003服务器x64。

Impossible to tell what is causing this, but I'd start by downloading a new fresh Eclipse and start a new workspace. 不可能说出是什么原因造成的,但是我首先要下载一个新的新鲜Eclipse并启动一个新的工作区。 This is not proper behaviour. 这是不正确的行为。 Perhaps you have installed a plugin that behaves erratically or are running something more than eclipse that can cause issues. 也许您安装了一个行为不正常的插件,或者正在运行除日食之外的其他事情,这可能会导致问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM