How to show a list of spelling suggestions in the default Eclipse XML Editor?

吃可爱长大的小学妹 提交于 2019-12-23 07:09:31

问题


I have the default Eclipse spell checker enabled. When a spelling error is detected while I'm working in the Java editor, I can use Ctrl-1 to show a list of suggested spelling corrections.

However, when I'm working in the default XML editor, Ctrl-1 doesn't appear to work. The misspelled words (in comments, mostly) are correctly underlined in red, but I cannot seem to figure out how to get a list of spelling suggestions.

In case this is a platform-specific problem, I'm running Eclipse Helios on Ubuntu 10.06 with OpenJDK 6.


回答1:


In Eclipse Luna, XML spell check works great with CTRL + 1:




回答2:


It simply isn't possible to bring up a list of spelling corrections in the Eclipse XML editor.

I've filed a bug with the Eclipse foundation in hopes of getting this fixed. If it ever is fixed, I'll edit this answer with details.




回答3:


Try ctrl+a and then ctrl+1. It gives sth like a list of spelling errors - at fact a list of all corect suggestions.




回答4:


Is there anything strange about the file you're editing, i.e., how it got into the editor?

Corrections for spelling mistakes are also triggered by Ctrl+1 there. Does Ctrl+1 do something else?



来源:https://stackoverflow.com/questions/4174549/how-to-show-a-list-of-spelling-suggestions-in-the-default-eclipse-xml-editor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!