How to Forbid Words

Making Words Forbidden

There are several ways to mark a word as forbidden:

  1. In a custom word list with words beginning with !.


    forbiddenWord will always be marked as misspelled. While companyname will be considered correct.

  2. In words section of cspell configuration:

    "words": [
  3. In flagWords section of cspell configuration:

    "flagWords": ["forbiddenWord"]

Overriding Forbidden words

Sometimes it is necessary to allow a word even if it is forbidden.

In a comment

 * Do not mark `forbiddenWord` as incorrect.
 * cspell:ignore forbiddenWord

In the cspell configuration

  "ignoreWords": ["forbiddenWord"]