问题
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