VS Code Spell Checker

Viewed 1717

I enabled the VS Code extension, "Code Spell Checker," and it works great. However, I wanted to include words from my custom dictionary file so the words in it aren't flagged as incorrect. I tried the following in my settings.json:

"cSpell.customUserDictionaries": [
    "name": "Custom",
    "description": "These are words from my custom dictionary.",
    "path": "C:\\Users\\Joe\\Documents\\Custom.txt",
    "addWords": false
],

But the words in Custom.txt are still marked as incorrect.

How can I configure Code Spell Checker so that it's able to load all the words in Custom.txt and ignore them?

1 Answers

According to their package.json that configuration is expecting a typeof array of objects, so the following should work:

"cSpell.customUserDictionaries": [
    {
        "name": "Custom",
        "description": "My desc",
        "path": "C:\\Users\\Joe\\Documents\\Custom.txt",
        "addWords": false
    }
],

And per their description:

File Format: Each line in the file is considered a dictionary entry

Related