Vscode-spell-checker: Option to ignore words

Created on 12 Oct 2017  路  12Comments  路  Source: streetsidesoftware/vscode-spell-checker

There are some words that I do not wish to be identified as misspellings. I could, of course, add these to the dictionary which would stop the warnings. But then these words would be offered as suggestions for other misspellings - which I do not want. Therefore an option to ignore some words is required.

Done / Fixed FAQ enhancement

Most helpful comment

Hmm... perhaps I'm missing something, but how is ignoring any different to "Add: [word] to dictionary" actions? They seem dynamic?

All 12 comments

Thank you for bringing this up. The setting exists, it is just not well documented. At the moment, there isn't any UI to add words to the ignore list.

There are three possible ways:

  1. Add it in your document that is being checked:
    javascript // cspell:ignore colourings
  2. In the Workspace settings: cSpell.ignoreWords.
    Example:
    json "cSpell.ignoreWords": ["colourings"]
  3. In cspell.json located in the root of your workspace:
    It is:
    json "ignoreWords": ["colourings"]

Excuse the delay. Good to know it already exists :) Do you plan on adding some UI for this?

I will add it as a F1 command.
I will need to think about how to add it to the right-click menu. Since it is not configurable via an api, it is hard to give people the option to use it or not.

Why is it not configurable via API?

In VS Code (as of a couple of months ago), you have to define the menu items in advance via the package.json file.

    "contributes": {
        "menus": {
            "editor/context": [...]
        }
    }

Which makes it hard to add dynamic items to the context menu.

Hmm... perhaps I'm missing something, but how is ignoring any different to "Add: [word] to dictionary" actions? They seem dynamic?

Is there any update on adding this to right click? I also cannot find this in F1.

I don't like the "ignore by list in the settings" approach.
I would like the exact same workflow as the global dictionary provides.
The only difference that the ignore words are a seperate list of the dictionary and are not used for suggestions.

Please can you add this options.
It's very painfull to edit settings.json just to add ignored words.
Many thanks

@Jason3S Sorry, is this available? (Issue is "Open", but the label is "Done/Fixed"...?)

Not sure if this will be the fix I'm looking for. But basically instead of this:
"ignoreWords" : ["hte" //plus a hundred others]

I need like this:

"ignoreWordsDictionary": "ignored-words-dict",
"ignoreWordsDictionaryDefinitions": [ {"name": "ignored-words-dict", "path": "./cspell_ignored.txt"}]

(Re-use an external ignore list across multiple projects, I guess like Spenhouet. Don't want to suggest my ignored list as corrections, hence not loaded as a regular dictionary.)

Is something like this being added? Or just a UI for ignoreWords...?

@courtneyaschwartz At the moment there is only UI to add it to the ignoreWords list.

I agree, a dictionary option would be very useful.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ili101 picture ili101  路  3Comments

ahmadyousefdev picture ahmadyousefdev  路  3Comments

mgroves picture mgroves  路  5Comments

ghost picture ghost  路  6Comments

gandalfsaxe picture gandalfsaxe  路  6Comments