12

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.

Jim Hurne
  • 7,187
  • 4
  • 44
  • 44
  • What eclipse version and what WTP version are you using? – VonC Nov 19 '10 at 14:04
  • Eclipse Helios (3.6). It's harder to tell what version of WTP, as it appears that many of its plugins have different versions. 3.2.2 maybe? – Jim Hurne Nov 22 '10 at 01:01
  • I'm also experiencing this problem on Eclipse Indigo, Ubuntu 11.04 with Oracle JDK 1.6.0. – stivlo Jul 13 '11 at 13:40
  • 1
    `Ctrl-1` This answered my question for Eclipse in general. :) – CivFan Sep 15 '15 at 16:52
  • Ctrl+1 works, but just in case anyone is looking: "Eclipse has a built-in Spell Checker. Go to Window > Preferences > General > Editors > Text Editors > Spelling to enable it." (http://stackoverflow.com/a/8786913/1599699) – Andrew Apr 25 '17 at 15:23
  • In addition to Ctrl + 1, you can also see the suggestions with the *Context Menu* by choosing `Quick Fix`. (I personally find it quite counter-intuitive :-\, I expected something like `Spell Suggestions` or so) – loved.by.Jesus Apr 15 '18 at 18:05

4 Answers4

7

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

enter image description here

Noam Manos
  • 15,216
  • 3
  • 86
  • 85
1

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

Pavel Q
  • 11
  • 1
0

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?

nitind
  • 19,089
  • 4
  • 34
  • 43
  • There is nothing strange about the files at all. They are basic XML files in my project source directories. Nothing happens when `Ctrl-1` is pressed. – Jim Hurne Nov 29 '10 at 13:09
0

Selecting the word and using ctrl+1 brings up the spelling choices in the default XML editor, as mentioned above.

In the POM editor I copy the word to another place, like a comment in Java code, and add it to the dictionary from there. I had to close the POM and open it again. After that, it stops complaining about the spelling.

You can also edit the dictionary directly to add missing words.

Christopher
  • 411
  • 3
  • 7