In my company, we're using VS Code together with the Code Spell Checker extension for Latex documentation. Now I'd like to create a company-wide used dictionary so that not every user has to add the specific words to its own dictionary. But I couldn't find the right information on how to do this.
I created a txt companyDict.txt file on the server so that it's available for everyone. Then I added the following lines to my VS Code settings.json
"cSpell.dictionaryDefinitions": [
{"name": "CompanyDictionary", "path": "//server/Documentation/Template/companyDict.txt"}
],
"cSpell.dictionaries": [
"CompanyDictionary"
],
Should that work so far? Do I have to possibility to tell the spell checker to add new words specifically to this dictionary or are user dictionaries "read-only"? How does such a user dictionary look like?
It took me a minute to figure this out, as well. There are at least two ways you can accomplish this:

Preferences: Open user settings (JSON) and searching cspell; it will be under cspell.userWords. You can then make this list public at your company, and anyone using the spell checker can paste them in.OR:
~/.cspell/ by default, but if you can't find it, go to Preferences: Open user settings (JSON) again, and its location will be under cSpell.customDictionaries.If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With