layout | title | categories | nav_order |
---|---|---|---|
default |
How to Forbid Words |
docs |
4 |
There are several ways to mark a word as forbidden:
-
In a custom word list with words beginning with
!
.!forbiddenWord companyname jQuery projectname
forbiddenWord
will always be marked as misspelled. Whilecompanyname
will be considered correct. -
In
words
section ofcspell
configuration:"words": [ "!forbiddenWord", "configstore" ],
-
In
flagWords
section ofcspell
configuration:"flagWords": ["forbiddenWord"]
Sometimes it is necessary to allow a word even if it is forbidden.
/**
* Do not mark `forbiddenWord` as incorrect.
* cspell:ignore forbiddenWord
*/