Eclipse:编辑长行后编辑器窗口自动滚动到行首
我的一些 Javascript 代码行比编辑器窗口视图长。我最近升级到了 Eclipse 的 Helios 版本,并注意到在编辑这些长行之一后(我滚动到右侧),几秒钟后编辑器窗口将自动滚动回左侧到该行的开头。它分散了我的注意力,太烦人了!
有谁知道如何阻止这种行为?我四处搜寻,除了其他人对同样的问题感到恼火之外,找不到任何其他东西!
我不愿意打开自动换行并换行:)。
Some of my Javascript lines of code are longer than the editor window view. I have recently upgraded to the Helios version of Eclipse and noticed that after editing one of these long lines (I am scrolled to the right), after a few seconds the editor window will automatically scroll back to the left to the beginning of the line. It breaks my concentration and it's so annoying!
Does anyone know how to stop this behavior? I've searched around and haven't been able to find anything other than others being annoyed by this same issue!
I am not willing to turn on word wrap and wrap my lines :).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
我遇到了同样的问题,发现这些 在 Eclipse Bugs 上打开 bugs。
没有迹象表明有修复它,但是当您关闭代码折叠并重新加载文件时,您可以防止它发生。
I was having the same issue and found these open bugs for it on the Eclipse Bugs.
No sign there of having a fix for it, but you can prevent it from happening when you switch the Code Folding off and reload the file.
对于 eclipse 中的 java:
Windows ->首选项-> Java -> 编辑器 -> 折叠 ->启用折叠(取消选中)
对于 eclispe 中的 HTML、JSP、XML 等:
窗口 ->首选项->一般->编辑->结构化文本编辑器 ->启用折叠(取消选中)
For java in eclipse :
Windows -> Preferences -> Java ->Editors ->Folding -> Enable Folding (uncheck)
For HTML, JSP, XML etc in eclispe :
Windows -> Preferences -> General -> Editors -> Structured Text Editors -> Enable Folding (uncheck)
如果您使用的是 Mac OSX,请按 OPTION + COMMAND + O 关闭“切换标记出现” - 它看起来像工具栏中的荧光笔。
If you're using Mac OSX, press OPTION + COMMAND + O to turn off "Toggle Mark Occurrences" - it looks like a highlighter in the toolbar.
我关闭了切换面包屑,它解决了我的问题。
I turned off Toggle Breadcrumb, and it fixed my problem.