Improve your Rational or Eclipse-based IDE’s spelling dictionary

I was the guy in middle school who raised his hand in class just to point out a spot on the chalkboard missed by the teacher’s eraser. Little things like that don’t bother most people, but for me, they stand out like a turd in a punch bowl. If I’m writing in ink and I scratch out just one word in my notebook, I want to rip out the whole damn page. You know what I mean? Then you probably feel the same about those squiggly red lines in the editor of your Rational or Eclipse-based IDE. They’re supposed to indicate misspelled words, which is totally useful, but when they flag words that are actually spelled correctly, it annoys me to all hell. For those who share this compulsive dread, I’ve found a cure…

How to add a user defined dictionary for your IDE’s spelling checker

  1. Prepare a simple text file with one word on each line. Here are two properly spelled words that Eclipse is unaware of in the English (United States) platform dictionary, for example: interoperability and utilitarian.
  2. Select menu, Window > Preferences
  3. Within the options tree of the Preferences dialog, expand and select General > Editors > Text Editors > Spelling
  4. You should see the view that follows. Click Browse… and navigate to find the text file you’ve prepared.
  5. Click Apply and then OK to dismiss the preferences dialog. You may have to re-open editors to initialize newly added words, or in some cases, restart the IDE.