How to create a user dictionary in eclipse?

痞子三分冷 提交于 2019-12-02 21:37:29
DonyorM

Yes, you can.

Create a text (.txt) file in a directory on your computer. Your eclipse workspace may be appropriate. Add a new word on each line of text. You don't have to remember every word, that's what the help option is for, when you type a misspelling/a word eclipse doesn't know.

Go to Window → Preferences → General → Editors → Text Editors → Spelling and find the User defined dictionary section. To the right of that is a button called "Browse" click it, navigate to your text file, and choose it. You'll need to restart Eclipse in order for the changes to take effect.

You can also just type in the text box next to "User defined dictionary" in the Spelling Menu the path to where you want the file to be, it doesn't have to exist. But you must be familiar with paths if you want to do this.

When in C/C++, you must change the "Select spelling engine to use:" option at the top of that options page to be "C/C++ spelling engine".

The user dictionary is just a plain text file with one word per line.

You do not have to create this file, just put the path to where you want to store the file in the 'User defined dictionary' configuration that Eclipse shows you and it will create the file.

Another thing to watch out for, at least in Eclipse Kepler, is that the dictionary cannot be located in C:\ProgramFiles\eclipse. I could not add words to the dictionary when I put the file there, maybe because it doesn't have permission to that directory.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!