QUESTION -- WebStorm: Spelling (Where do we place a user dictionary?) Follow
The documentation for Spellchecking says we can create user dictionaries:
Where does the user dictionary get placed for just a project?
I placed a user dictionary at the project root level. But the word I placed in the dictionary is reported as misspelled by Inspect Code. Why?
QUESTION:
- Where are user dictionaries placed?
Please sign in to leave a comment.
Hi there,
There are IDE-wide and project/user specific dictionaries.
1) The text on screenshot refers to IDE-wide ones. You can place it anywhere . .but IDE will be trying to use it for every project; therefore it's better to place it in separate folder in some shared/common location (e.g. "~/MyProjects/dictionaries").
NOTE: Do not forget to add that path in "Settings (Preferences on Mac) | Editor | Spelling | Dictionaries tab" -- IDE will load all dictionaries from such folder.
2) The user/project specific dictionaries is just a list of words that you were marked as acceptable/correct via context menu. Such dictionaries are stored in "PROJECT_ROOT/.idea/dictionaries/USERNAME.xml" file and it's a XML file.
Thanks for responding, Andriy.
I am finding that I am able to add words (flagged as a misspelling) to the Accepted Words list by doing either of the following:
But the wording seems confusing: the targeted word is being added to the "Accepted Words" list, not one of the built-in dictionaries.
How do I make the suggestion that the wording be clarified in the Inspection panel and the contextual menu?
I would like to suggest:
In the Inspection Results panel:
Change this:
to this:
In the contextual menu:
Change this:
to this:
Changing "dictionary" to "Accepted Word list makes is clearer where the word is actually being placed.
1) I see no reason at all why it should be added to any of the built-in dictionaries.
2) "Accepted words" is basically per project user-generated dictionary.
3) At the same time, dictionary file (the format this IDE uses) is just a list of words (all possible forms -- one word per line -- no "fancy" things like word-forming rules etc -- just a simple list).
I do not like such idea: "dictionary" is a better word than "accepted word list" from any aspect (IMHO, of course): it is shorter, better sounding, more recognizable.
If it would be up to me I would rather change "Accepted Word List" to something like "User-generated dictionary" or something like that.
In any case: feel free to submit your suggestions to the Issue Tracker