How do I enable spell checking in Eclipse?

冷暖自知 提交于 2019-12-18 03:10:11

问题


Is there any way to enable code spell checking in Eclipse? I misspell words fairly often.

For example: void spllmstake() => void spellmistake()


回答1:


I have found a spell checker and proved it (with your example), and it seems to work. Do the following steps:

  • Download espell checker as zip file
  • Call Help > Install New Software > Add... > Archive...
  • Insert the path and file name of the zip file.
  • Do the normal installation with restart
  • Go to Window > Preferences > Spelling > AspectJ, Java, ...
  • Ensure that Check Names is selected.

In your example, the word spllmstake is marked as wrong, as is spellmistake. spellMistake (like two words) works well.




回答2:


Eclipse has a built-in Spell Checker. Go to Window > Preferences > General > Editors > Text Editors > Spelling to enable it.




回答3:


I have founded spell checker from eclipse marketplace. It is JDT spell checker and here is the description

The aim is to provide spelling support for words contained in the names of Java artifacts: Interfaces, Classes, Methods, ... Splitting out the names using regular naming patters for Java names.

Eclipse marketplace - http://marketplace.eclipse.org/content/jdt-spelling#.U8drE7E3n34

Git hub - https://github.com/hendrens/jdt.spelling



来源:https://stackoverflow.com/questions/8786880/how-do-i-enable-spell-checking-in-eclipse

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