22

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

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

Stevoisiak
  • 23,794
  • 27
  • 122
  • 225
Bmis13
  • 550
  • 1
  • 8
  • 27

3 Answers3

20

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

dogbane
  • 266,786
  • 75
  • 396
  • 414
  • 5
    I don't believe it will. Eclipse in-built spell checker is designed to recognise and only check text. It ignores code such as variable and method names AFAIK. – Dracs Nov 25 '12 at 22:30
16

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.

mliebelt
  • 15,345
  • 7
  • 55
  • 92
  • SpellMistake probably just _seemed_ to work well because mixed-case words were ignored. Try SpellMstake. – hmijail Apr 29 '16 at 07:40
6

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

Thilina Rubasingha
  • 1,049
  • 1
  • 9
  • 17