问题
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.
UPDATE: Whoever gave the down vote, please clarify the reason, otherwise I do not learn.
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.
回答1:
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.
回答2:
You can disable spell checking:
Window->Preferences :: General->Editor->Text Editors->Spelling,
uncheck the box "Enable spell checking"
回答3:
Hover over the spell-checked comment, then scroll down to and click "Disable spell checking".
来源:https://stackoverflow.com/questions/20983776/eclipse-how-to-selectively-disable-spell-check-in-certain-comments