Skip to content

What is the difference between words and ignoreWords #4726

Answered by Jason3S
xnivaxhzne asked this question in Q&A
Discussion options

You must be logged in to vote

@kavinkuma6,

The logic of when a word is considered OK:

  1. Is the word in ignoreWords? Yes, then it is OK.
  2. Is the word in flagWords? Yes, then it is NOT OK.
  3. Is the word in words? Yes, then it is OK.
  4. Otherwise it is NOT OK.

CSpell allows for multiple configure files.

Example: Say an organization want to use the British spelling of colour and to discourage the American color. But, there is a subfolder where color should be allowed.

\cspell.config.yaml
   words: [colour]
   flagWords: [color]
\README.md
   colour - is OK.
   color - is NOT OK.
\subfolder
   cspell.config.yaml
      ignoreWords: [color]
   README.md
      colour - is OK.
      color - is OK.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@xnivaxhzne
Comment options

@Jason3S
Comment options

@xnivaxhzne
Comment options

Answer selected by xnivaxhzne
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants