Eclipse Spell Checker

one of the nice things of modern ide’s are: they offer many extras for free. many times it is related to programming and coding. but i love as well the ones which makes things easier and better which is not directly related to the executed code. one thing eclipse offers is an on-the-fly spell-checking, similar to microsoft word:

Eclipse Spell Checker

spellchecked sources

hovering over the text offers me to correct the flagged error:

Eclipse Spell Checker

initialization vs. initialisation

but wait: is that example not spelled correctly?

and indeed, eclipse offers to customize the spell checking. the option page is in the windows > preferences > general > editors > text editors > spelling page:

Eclipse Spell Checker

spelling preferences

‘initialization’ vs. ‘initialisation’: that’s an ‘english us’ vs. english uk’ thing, and is easily changed. and i prefer the us english:

Eclipse Spell Checker

changing dictionary

with this, everything is ok now:

Eclipse Spell Checker

not flagged any more

Eclipse Spell Checker after changing the platform dictionary, it usually takes a few minutes until the sources are checked again.

but what if eclipse does not know a word? then it offers to add it to a dictionary:

Eclipse Spell Checker

adding to the dictionary

if i do not have a user dictionary yet, it will prompt a dialog:

Eclipse Spell Checker

missing user dictionary

if pressing ‘yes’, it will prompt the settings page from above where i can specify my user dictionary file:

Eclipse Spell Checker

user defined dictionary

the user dictionary is a normal text file with one word on each line. that makes it easy to edit and to have it in a version control system.

Eclipse Spell Checker i have one common dictionary file for all my workspaces. but of course it is possible to have different dictionaries per workspace, as the settings are per workspace too.

summary

i feel having reasonable spelled comments in the sources is just something an engineer should care about. and the eclipse spelling engine does not have to be as good as the one in ms word (which is pretty good in my view). but for making sources better something like correctly spelled comments is a plus. but only if the code works like a charm :mrgreen:

happy spelling Eclipse Spell Checker

 

 

 

 

Top