Module-level custom dictionaries

Answered

Can dictionaries be defined in a module (rather than a project)? If so, how?

If a dictionary is defined in a module, does it only apply to files in that module, or does it apply to all files in a project?

If you can limit the scope of a dictionary to a module, is there a boolean for each module-level dictionary indicating whether to export that dictionary to all other modules that depend on that module?

Which dictionary formats (.dic, .xml, hunspell, etc.) are supported at module level? Is there any reason to prefer one format over another?

I'd want to store the dictionaries and related settings in the VCS repo for my modules / projects.

Thanks.

0
1 comment

There is no module-level dictionary. We have related request to be able to use different dictionaries with the spelling/type infection: https://youtrack.jetbrains.com/issue/WI-36433. Please join the discussion and vote for request.

>Which dictionary formats (.dic, .xml, hunspell, etc.) are supported at module level? Is there any reason to prefer one format over another?

Please see Spelling:

  • Plain text files with the dic extension, containing words separated with a newline.
  • Hunspell dictionaries, comprised of two plain text files commonly sharing the same name, for example, en_GB.dic and en_GB.aff

See also related blog bost https://blog.jetbrains.com/phpstorm/2018/01/hunspell-dictionaries-support

0

Please sign in to leave a comment.