为什么Eclipse IDE水平滚动条不断重置回绝对左栏
我有 Eclipse 3.7.1 classic,添加了 Android 插件和 HTML 编辑器插件。
如果我在 HTML 编辑器中有一长行文本,并将水平滚动条滚动到我想要的位置,当我将光标放在那里并开始键入时,在短暂的暂停后,它会不断将水平滚动条重置到最左侧。它并不总是这样做,但它的频繁程度足以令人烦恼。
为什么 Eclipse 会这样做,我该如何阻止它?
I have Eclipse 3.7.1 classic, with added Android plugin and HTML editor plugin.
If I have a long line of text in the HTML editor and scroll the horizontal scrollbar to where I want to be, when I place the cursor there and start to type, after a short pause it keeps resets the horizontal scrollbar to the far left. It doesn't do it all the time, but it is frequent enough to be annoying.
Why is Eclipse doing this, and how can I stop it?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
不是真正的答案,但从昨天开始我遇到了同样的问题。我不知道原因或任何解决方案,但最终使用“\”或“+”分割了所有冗长的字符串。这“解决”了问题并提高了代码的可读性。
再会
红狐
Not really an answer but I have the same Problem since yesterday. I don't know the cause or any solution but ende up splitting all my lengthy strings using either "\" or "+". That "fixed" the problem and resulted and better readability of the code.
Good Day
Redfox
就我而言,这种情况是在安装了 Coffee Bytes Java Folding 扩展/插件后开始发生的,最终它让我非常恼火,我将其关闭......并且滚动跳跃停止了。
这是一种耻辱,因为我想要像 .Net 中那样折叠“区域”,而该扩展给了我这种能力。我还没有寻找替代方案,但无论如何我都在胡言乱语 - 看看你是否在“首选项”>“启用”下启用了此扩展。爪哇>编辑>折叠式的。
In my case this started happening after installing the Coffee Bytes Java Folding extension/plugin, and eventually it just annoyed me so much I turned it off...and the scroll jumping stopped.
It was a shame because I wanted folding of 'Regions' like in .Net and that extension gave me that ability. I've not looked for an alternative yet, but anyway I'm rambling - see if you have this extension enabled under Preferences > Java > Editor > Folding.
当我遇到这种情况时,问题是我的选线不够稳定。因此,我将简要选择两行输入。当另一行输入较短甚至为空时,它会重置到该行的最右边缘(如果为空则为最左边)。水平移动时非常小心是可行的,但很难维护。也许降低鼠标灵敏度会有所帮助。
搜索“eclipse换行”发现Alt Shift Y打开和关闭换行。工具栏上似乎还有一个按钮。有关更多详细信息,请参阅 Eclipse 是否有换行。
正如其他人指出的那样,进行更改以使线条不比窗口宽也可以解决此问题。但是,当您遇到其他人设置行长度的情况时,切换换行可以快速轻松地解决此问题。
当然,这假设您遇到了与我相同的问题,而不是由插件或其他问题引起的。
When this happens to me, the problem is that I'm not steady enough in my line selection. So I'll briefly be selecting two lines of input. And when the other line of input is shorter or even empty, it resets to the rightmost edge of that line (which if empty is the far left). Being very careful when moving horizontally can work but is difficult to maintain. Perhaps turning down the mouse sensitivity would help.
Searching for "eclipse line wrap" found that Alt Shift Y turns line wrap on and off. There also seems to be a button on the toolbar. See Does Eclipse have line-wrap for more details.
As others have noted, changing so that the lines aren't wider than the window also fixes this. But when you're in a situation where someone else sets the line length, toggling line wrap can be a quick and easy solution to this problem.
This of course assumes that you are having the same problem as me and not something caused by a plugin or other issue.
窗口>>首选项>> PHP>>编辑>>代码折叠>>启用折叠(取消选中此项)
Window >> Preferences >> PHP >> Editor >> Code Folding >> Enable Folding (Uncheck this)