Eclipse: how to selectively disable spell check in certain comments

血红的双手。 提交于 2020-02-03 05:48:28

问题


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

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