How do I enable spell checking in Eclipse?

后端 未结 3 1950
南旧
南旧 2020-12-15 05:59

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

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

相关标签:
3条回答
  • 2020-12-15 06:42

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

    0 讨论(0)
  • 2020-12-15 06:47

    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

    0 讨论(0)
  • 2020-12-15 06:59

    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.

    0 讨论(0)
提交回复
热议问题