Configuring Eclipse to use OS X’s dictionary
One of the nice things about OS X is that almost all of the programs written for the operating system leverage the built-in dictionary. Once a word is learned, it is forever remembered in all of your other programs. Up until now this has not been true for Eclipse.
Over the weekend, however, I decided to see if I could remedy the situation. As it turns out, the solution is surprisingly simple. OS X (10.6) stores your learned words in $HOME/Library/Spelling/LocalDictionary. This file is simply a line-delimited list of the words that you’ve taught your computer to remember. Here’s mine:
akutz Apocalyptica Artifactory Atlassian's cmdlet cmdlets codegen crooke daschunds datastore del deserializers fubar Genteal Gobel Goldblum Hmmm Jira Jonathon Kamran kruse Kutz Lissette McCrory Nels Netscaler omkar Powershell Pratchett regex Rendevouz Restlet Schley serena Starbucks Stauffer tarball Teleporter Texarkana uninstall uninstalled uninstalls Vaadin Vangaea Veeam viexport VMworld ws Xen XenServers Zahid
Eclipse (3.5 – Gallileo) also happens to use a line-delimited file for learned words. All you have to do is tell Eclipse to use OS X’s dictionary file.
- To do this simply press Apple-’ to open up Eclipse’s preferences dialog.
- Then search for the keyword dictionary. You will see a screen resembling the following:
- Finally, set the field User defined dictionary (highlighted in the above image) to the path of your own local dictionary file.
Hope this helps!
Filed under: apple, software development | 4 Comments
Tags: dictionary, eclipse, os x