7

I am using Eclipse, Kepler version.

How do I disable the spell checking inside comments?

I do see "Window | Preferences | General | Editors | Text Editors | Spelling", but this sheet has no option about disabling spell checking inside comments.

Ideally, I would like to disable spell checking for a specific comment.

In other places spell checking comments can be useful.

Additionally, I did see the other referenced solution, which I am using and did use, but I did not want to disable spell checking for good. I wanted to turn off spell checking in certain situations but leave it on for others. That was addressed in a comment, so if the negative vote was because my question was addressed elsewhere, then it was not.

E_net4
  • 27,810
  • 13
  • 101
  • 139
Sarah Weinberger
  • 15,041
  • 25
  • 83
  • 130
  • 3
    possible duplicate of [Turn off spell checking in Eclipse for good](http://stackoverflow.com/questions/6295066/turn-off-spell-checking-in-eclipse-for-good) – Tdorno Jan 07 '14 at 23:03
  • 4
    I do NOT want to disable disable spell checking for good. I like spell checking. Additionally, what makes you all think that I did not use Google? – Sarah Weinberger Jan 07 '14 at 23:15
  • Also, the option mentioned, I indicated in my question. I used "|" instead of "-->", which the referenced issue mentioned. – Sarah Weinberger Jan 07 '14 at 23:16
  • There doesn't seem to be a way to disable/enable spell checking for certain areas. You can try to write your own Eclipse plugin. – MystyxMac Jan 07 '14 at 23:43
  • 2
    Not worth the time and effort, at the moment. I figured this question was obvious, so I thought that I ask it, as I am new to Eclipse. The answer is that there is no way to selectively turn off spell check selectively, except globally. I can accept that. – Sarah Weinberger Jan 08 '14 at 00:02
  • 2
    A useful question for sure. Personally I would like to have spell checking turned off inside `@{code }` fragments - I typically use variable names there which more often than not fail to be proper words – Arend Jul 19 '14 at 08:47

3 Answers3

3

There is not a way to turn off spell checking for a comment. You've either got words in there or you don't. You can, however, add what's been flagged as a misspelling to your own user dictionary, in which case that particular word will be ignored.

nitind
  • 19,089
  • 4
  • 34
  • 43
2

You can disable spell checking:

Window->Preferences :: General->Editor->Text Editors->Spelling,
uncheck the box "Enable spell checking"

enter image description here

Sumit Singh
  • 15,743
  • 6
  • 59
  • 89
0

Hover over the spell-checked comment, then scroll down to and click "Disable spell checking".

ArmaAK
  • 587
  • 6
  • 21
  • 3
    This option is the same as globally. – Sarah Weinberger Jan 07 '14 at 23:18
  • Sorry, I'm not understanding. I don't see why you would need spell checking outside of comments. – ArmaAK Jan 07 '14 at 23:37
  • 1
    I did not write Eclipse, so I am not sure of all the spell checking areas. There are strings, comments, and whatever else. I was just interested in one particular comment. The answer is that there is no way to selectively turn off a comment, just globally as mentioned in the other article, which I already found on my own and mentioned in my question. – Sarah Weinberger Jan 08 '14 at 00:03
  • Ah, apologies. I read as something along the lines of "specifically for comments". You can ignore certain words, which may or may not yield similar results to what you want to do. Anyway, sorry for the mix up. – ArmaAK Jan 08 '14 at 00:07