Eclipse Ganymede HTML编辑器在编辑属性时非常慢

时间:2023-02-05 12:14:08

I recently upgraded to Eclipse Ganymede from Europa and now I'm finding that when I'm editing JSP files the IDE crawls when editing HTML attributes (but not JSP attributes).

我最近从Europa升级到Eclipse Ganymede,现在我发现当我编辑JSP文件时,IDE在编辑HTML属性时会爬行(但不是JSP属性)。

Has anyone experienced this, or have any suggestions?

有没有人经历过这个,或者有任何建议?

Also if you can point me to a better place to ask Eclipse related questions, do tell.

另外,如果您能指出一个更好的地方来询问与Eclipse相关的问题,请告诉我们。

Thanks!

8 个解决方案

#1


6  

The visual editors in Eclipse are slow. I have no idea why that is; other graphics frameworks achieve mindboggling effects in Java in real time so they shouldn't be that slow.

Eclipse中的可视化编辑器很慢。我不知道为什么会这样;其他图形框架实时地在Java中实现令人难以置信的效果,因此它们不应该那么慢。

I suggest you open a bug report against Eclipse. This way, you can give them feedback and see what they think about it plus you can track any progress if they accept it.

我建议你打开一个针对Eclipse的bug报告。通过这种方式,您可以向他们提供反馈并了解他们对此的看法,并且如果他们接受,您可以跟踪任何进度。

As for asking Eclipse questions, go to the newsgroups. There are also mailing lists but those are only for developers working on Eclipse (not those who work with it). So they are only an option should you choose to work on this bug :)

至于询问Eclipse问题,请转到新闻组。还有邮件列表,但这些邮件列表仅适用于从事Eclipse工作的开发人员(不是那些使用它的人)。所以如果你选择处理这个bug,它们只是一个选项:)

#2


7  

For Eclipse Ganymede: You can use the following menu to disable HTML validation all together or parts of it by project.

对于Eclipse Ganymede:您可以使用以下菜单一起禁用HTML验证或按项目禁用部分HTML验证。

Right Click on the project | Project Properties | Validation | Enable Project Specific Settings.

右键单击项目|项目属性|验证|启用项目特定设置。

Then you can disable HTML Validation.

然后,您可以禁用HTML验证。

Or, from Project Properties, click open Validation and select HTML Validation. Select Enable Project Specific Settings and set any of the ten element checks to "Ignore."

或者,从“项目属性”中,单击“打开验证”,然后选择“HTML验证”。选择“启用项目特定设置”,并将十个元素检查中的任何一个设置为“忽略”。

You can also turn these settings off for the entire workspace using the Windows (Eclipse) Preferences | Validation settings.

您还可以使用Windows(Eclipse)首选项|关闭整个工作区的这些设置验证设置。

#3


4  

The problem still persist today, as it seem. I know the problem, but I don't know yet how to counter it...

这个问题今天仍然存在,看起来似乎如此。我知道这个问题,但我还不知道如何应对它...

You can see that if you try to edit an attribute at the end of the document, it is not as slow as editing an attribute at the beginning of the document.

您可以看到,如果您尝试编辑文档末尾的属性,则不会像在文档开头编辑属性那样慢。

Or you may see that if you try to edit attributes that have their ending-quote already in place (for example, first type in: attribute_name="" and only then type in the attribute value, it is also not slow.

或者您可能会看到,如果您尝试编辑已经存在结尾引用的属性(例如,首先输入:attribute_name =“”,然后只输入属性值,它也不会很慢。

The problem occurs because when you type in an attribute without a value-ending quote ("), like so: attribute_name="..., the rest of the document becomes the value of that attribute and is being processed by eclipse for every keystroke you make.

出现此问题的原因是当您键入没有值结束引号(“)的属性时,如下所示:attribute_name =”...,文档的其余部分将成为该属性的值,并且每次按键都会被eclipse处理你做。

I have spent about half an hour looking at how to disable attribute value processing but failed (maybe I didn't look for it long enough).

我花了大约半个小时来研究如何禁用属性值处理但是失败了(也许我没有找到足够长的时间)。

Ben

#4


3  

Try closing the overview tab

尝试关闭概述选项卡

#5


2  

untick Enable folding in Preferences > General > Editors > Structured Text Editors

取消勾选在“首选项”>“常规”>“编辑器”>“结构化文本编辑器”中启

#6


0  

Using the eclipse update site I had previously installed Eclipse Web Developer Tools. It seems something included in this makes the JSP editor extremely slow.

使用eclipse更新站点我之前安装了Eclipse Web Developer Tools。似乎包含在内的东西使得JSP编辑器非常慢。

I un-installed this and installed the Web Page Editor which also includes the JSP editor and does not have the same slow issue

我卸载了它并安装了Web页面编辑器,它也包含了JSP编辑器,并且没有相同的慢速问题

#7


0  

Here they say Eclipse Kepler will overcome this issue: Is Eclipse Too Slow Switching Tabs?. Unfortunately patch link for Eclipse Juno is now broken... so I'll wait for Kepler.

在这里,他们说Eclipse Kepler将克服这个问题:Eclipse太慢切换标签了吗?不幸的是,Eclipse Juno的补丁链接现在已经破了...所以我会等待Kepler。

#8


-1  

Project > Properties > JavaScript > Include Path > Source

Delete dir with tons of js files, such as JQuery, etc... Eclipse gets lost with too many source code to compile.

使用大量的js文件删除dir,例如JQuery等等...... Eclipse因为编译过多源代码而丢失。

#1


6  

The visual editors in Eclipse are slow. I have no idea why that is; other graphics frameworks achieve mindboggling effects in Java in real time so they shouldn't be that slow.

Eclipse中的可视化编辑器很慢。我不知道为什么会这样;其他图形框架实时地在Java中实现令人难以置信的效果,因此它们不应该那么慢。

I suggest you open a bug report against Eclipse. This way, you can give them feedback and see what they think about it plus you can track any progress if they accept it.

我建议你打开一个针对Eclipse的bug报告。通过这种方式,您可以向他们提供反馈并了解他们对此的看法,并且如果他们接受,您可以跟踪任何进度。

As for asking Eclipse questions, go to the newsgroups. There are also mailing lists but those are only for developers working on Eclipse (not those who work with it). So they are only an option should you choose to work on this bug :)

至于询问Eclipse问题,请转到新闻组。还有邮件列表,但这些邮件列表仅适用于从事Eclipse工作的开发人员(不是那些使用它的人)。所以如果你选择处理这个bug,它们只是一个选项:)

#2


7  

For Eclipse Ganymede: You can use the following menu to disable HTML validation all together or parts of it by project.

对于Eclipse Ganymede:您可以使用以下菜单一起禁用HTML验证或按项目禁用部分HTML验证。

Right Click on the project | Project Properties | Validation | Enable Project Specific Settings.

右键单击项目|项目属性|验证|启用项目特定设置。

Then you can disable HTML Validation.

然后,您可以禁用HTML验证。

Or, from Project Properties, click open Validation and select HTML Validation. Select Enable Project Specific Settings and set any of the ten element checks to "Ignore."

或者,从“项目属性”中,单击“打开验证”,然后选择“HTML验证”。选择“启用项目特定设置”,并将十个元素检查中的任何一个设置为“忽略”。

You can also turn these settings off for the entire workspace using the Windows (Eclipse) Preferences | Validation settings.

您还可以使用Windows(Eclipse)首选项|关闭整个工作区的这些设置验证设置。

#3


4  

The problem still persist today, as it seem. I know the problem, but I don't know yet how to counter it...

这个问题今天仍然存在,看起来似乎如此。我知道这个问题,但我还不知道如何应对它...

You can see that if you try to edit an attribute at the end of the document, it is not as slow as editing an attribute at the beginning of the document.

您可以看到,如果您尝试编辑文档末尾的属性,则不会像在文档开头编辑属性那样慢。

Or you may see that if you try to edit attributes that have their ending-quote already in place (for example, first type in: attribute_name="" and only then type in the attribute value, it is also not slow.

或者您可能会看到,如果您尝试编辑已经存在结尾引用的属性(例如,首先输入:attribute_name =“”,然后只输入属性值,它也不会很慢。

The problem occurs because when you type in an attribute without a value-ending quote ("), like so: attribute_name="..., the rest of the document becomes the value of that attribute and is being processed by eclipse for every keystroke you make.

出现此问题的原因是当您键入没有值结束引号(“)的属性时,如下所示:attribute_name =”...,文档的其余部分将成为该属性的值,并且每次按键都会被eclipse处理你做。

I have spent about half an hour looking at how to disable attribute value processing but failed (maybe I didn't look for it long enough).

我花了大约半个小时来研究如何禁用属性值处理但是失败了(也许我没有找到足够长的时间)。

Ben

#4


3  

Try closing the overview tab

尝试关闭概述选项卡

#5


2  

untick Enable folding in Preferences > General > Editors > Structured Text Editors

取消勾选在“首选项”>“常规”>“编辑器”>“结构化文本编辑器”中启

#6


0  

Using the eclipse update site I had previously installed Eclipse Web Developer Tools. It seems something included in this makes the JSP editor extremely slow.

使用eclipse更新站点我之前安装了Eclipse Web Developer Tools。似乎包含在内的东西使得JSP编辑器非常慢。

I un-installed this and installed the Web Page Editor which also includes the JSP editor and does not have the same slow issue

我卸载了它并安装了Web页面编辑器,它也包含了JSP编辑器,并且没有相同的慢速问题

#7


0  

Here they say Eclipse Kepler will overcome this issue: Is Eclipse Too Slow Switching Tabs?. Unfortunately patch link for Eclipse Juno is now broken... so I'll wait for Kepler.

在这里,他们说Eclipse Kepler将克服这个问题:Eclipse太慢切换标签了吗?不幸的是,Eclipse Juno的补丁链接现在已经破了...所以我会等待Kepler。

#8


-1  

Project > Properties > JavaScript > Include Path > Source

Delete dir with tons of js files, such as JQuery, etc... Eclipse gets lost with too many source code to compile.

使用大量的js文件删除dir,例如JQuery等等...... Eclipse因为编译过多源代码而丢失。