Eclipse Spell Checker
Join the DZone community and get the full member experience.
Join For Freeone 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:
hovering over the text offers me to correct the flagged error:
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:
‘initialization’ vs. ‘initialisation’: that’s an ‘english us’ vs. english uk’ thing, and is easily changed. and i prefer the us english:
with this, everything is ok now:
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:
if i do not have a user dictionary yet, it will prompt a dialog:
if pressing ‘yes’, it will prompt the settings page from above where i can specify my user dictionary file:
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
Published at DZone with permission of Erich Styger, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments