How to create a user dictionary in eclipse?

后端 未结 4 1315
梦谈多话
梦谈多话 2021-02-03 17:31

When I use eclipse and see my name in the javadocs as the author, I also find the spellchecker marking my name as it does not understand that it is a proper name. Thus, I get th

相关标签:
4条回答
  • 2021-02-03 17:58

    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".

    enter image description here

    0 讨论(0)
  • 2021-02-03 18:01

    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.

    0 讨论(0)
  • 2021-02-03 18:05

    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.

    0 讨论(0)
  • 2021-02-03 18:08

    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.

    0 讨论(0)
提交回复
热议问题