Interface: LanguageSetting
Defined in: cspell-types/dist/index.d.mts:1332
Extends
Properties
allowCompoundWords?
optional
allowCompoundWords:boolean
Defined in: cspell-types/dist/index.d.mts:1221
True to enable compound word checking.
Default
false
Inherited from
BaseSetting
.allowCompoundWords
caseSensitive?
optional
caseSensitive:boolean
Defined in: cspell-types/dist/index.d.mts:1233
Determines if words must match case and accent rules.
See Case Sensitivity for more details.
false
- Case is ignored and accents can be missing on the entire word. Incorrect accents or partially missing accents will be marked as incorrect.true
- Case and accents are enforced.
Default
false
Inherited from
description?
optional
description:string
Defined in: cspell-types/dist/index.d.mts:1210
Optional description of configuration.
Inherited from
dictionaries?
optional
dictionaries:string
[]
Defined in: cspell-types/dist/index.d.mts:1257
Optional list of dictionaries to use. Each entry should match the name of the dictionary.
To remove a dictionary from the list, add !
before the name.
For example, !typescript
will turn off the dictionary with the name typescript
.
See the Dictionaries and Custom Dictionaries for more details.
Inherited from
dictionaryDefinitions?
optional
dictionaryDefinitions:DictionaryDefinition
[]
Defined in: cspell-types/dist/index.d.mts:1246
Define additional available dictionaries.
For example, you can use the following to add a custom dictionary:
"dictionaryDefinitions": [
{ "name": "custom-words", "path": "./custom-words.txt"}
],
"dictionaries": ["custom-words"]
Inherited from
BaseSetting
.dictionaryDefinitions
enabled?
optional
enabled:boolean
Defined in: cspell-types/dist/index.d.mts:1215
Is the spell checker enabled.
Default
true
Inherited from
flagWords?
optional
flagWords:string
[]
Defined in: cspell-types/dist/index.d.mts:510
List of words to always be considered incorrect. Words found in flagWords
override words
.
Format of flagWords
- single word entry -
word
- with suggestions -
word:suggestion
orword->suggestion, suggestions
Example:
"flagWords": [
"color: colour",
"incase: in case, encase",
"canot->cannot",
"cancelled->canceled"
]
Inherited from
id?
optional
id:string
Defined in: cspell-types/dist/index.d.mts:1206
Optional identifier.
Inherited from
ignoreRegExpList?
optional
ignoreRegExpList:RegExpPatternList
Defined in: cspell-types/dist/index.d.mts:1295
List of regular expression patterns or pattern names to exclude from spell checking.
Example: ["href"]
- to exclude html href pattern.
Regular expressions use JavaScript regular expression syntax.
Example: to ignore ALL-CAPS words
JSON
"ignoreRegExpList": ["/\\b[A-Z]+\\b/g"]
YAML
ignoreRegExpList:
- >-
/\b[A-Z]+\b/g
By default, several patterns are excluded. See Configuration for more details.
While you can create your own patterns, you can also leverage several patterns that are built-in to CSpell.
Inherited from
ignoreWords?
optional
ignoreWords:string
[]
Defined in: cspell-types/dist/index.d.mts:515
List of words to be ignored. An ignored word will not show up as an error, even if it is
also in the flagWords
.
Inherited from
includeRegExpList?
optional
includeRegExpList:RegExpPatternList
Defined in: cspell-types/dist/index.d.mts:1304
List of regular expression patterns or defined pattern names to match for spell checking.
If this property is defined, only text matching the included patterns will be checked.
While you can create your own patterns, you can also leverage several patterns that are built-in to CSpell.
Inherited from
languageId
languageId:
MatchingFileType
Defined in: cspell-types/dist/index.d.mts:1338
The language id. Ex: typescript
, html
, or php
. *
-- will match all languages.
Inherited from
LanguageSettingFilterFields
.languageId
local?
optional
local:string
|string
[]
Defined in: cspell-types/dist/index.d.mts:1350
Deprecated - The locale filter, matches against the language. This can be a comma separated list. *
will match all locales.
Deprecated
true
Deprecation Message
Use locale
instead.
Inherited from
LanguageSettingFilterFields
.local
locale?
optional
locale:string
|string
[]
Defined in: cspell-types/dist/index.d.mts:1340
The locale filter, matches against the language. This can be a comma separated list. *
will match all locales.
Inherited from
LanguageSettingFilterFields
.locale
name?
optional
name:string
Defined in: cspell-types/dist/index.d.mts:1208
Optional name of configuration.
Inherited from
noSuggestDictionaries?
optional
noSuggestDictionaries:string
[]
Defined in: cspell-types/dist/index.d.mts:1267
Optional list of dictionaries that will not be used for suggestions. Words in these dictionaries are considered correct, but will not be used when making spell correction suggestions.
Note: if a word is suggested by another dictionary, but found in one of these dictionaries, it will be removed from the set of possible suggestions.
Inherited from
BaseSetting
.noSuggestDictionaries
parser?
optional
parser:string
Defined in: cspell-types/dist/index.d.mts:1551
Experimental
Parser to use for the file content
Since
6.2.0
Inherited from
patterns?
optional
patterns:RegExpPatternDefinition
[]
Defined in: cspell-types/dist/index.d.mts:1330
Defines a list of patterns that can be used with the ignoreRegExpList and includeRegExpList options.
For example:
"ignoreRegExpList": ["comments"],
"patterns": [
{
"name": "comment-single-line",
"pattern": "/#.*/g"
},
{
"name": "comment-multi-line",
"pattern": "/(?:\\/\\*[\\s\\S]*?\\*\\/)/g"
},
// You can also combine multiple named patterns into one single named pattern
{
"name": "comments",
"pattern": ["comment-single-line", "comment-multi-line"]
}
]
Inherited from
suggestWords?
optional
suggestWords:string
[]
Defined in: cspell-types/dist/index.d.mts:529
A list of suggested replacements for words. Suggested words provide a way to make preferred suggestions on word replacements. To hint at a preferred change, but not to require it.
Format of suggestWords
- Single suggestion (possible auto fix)
word: suggestion
word->suggestion
- Multiple suggestions (not auto fixable)
word: first, second, third
word->first, second, third
Inherited from
words?
optional
words:string
[]
Defined in: cspell-types/dist/index.d.mts:492
List of words to be considered correct.