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:
spellchecked sources
hovering over the text offers me to correct the flagged error:
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:
spelling preferences
‘initialization’ vs. ‘initialisation’: that’s an ‘english us’ vs. english uk’ thing, and is easily changed. and i prefer the us english:
changing dictionary
with this, everything is ok now:
not flagged any more
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:
adding to the dictionary
if i do not have a user dictionary yet, it will prompt a dialog:
missing user dictionary
if pressing ‘yes’, it will prompt the settings page from above where i can specify my user dictionary file:
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.
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