Languages and Dictionaries
Settings that control dictionaries and language preferences.
| Setting | Scope | Description |
|---|---|---|
cSpell.caseSensitive | resource | Determines if words must match case and accent rules. |
cSpell.customDictionaries | resource | Custom Dictionaries |
cSpell.dictionaries | resource | Optional list of dictionaries to use. |
cSpell.dictionaryDefinitions | resource | Dictionary Definitions |
cSpell.flagWords | resource | List of words to always be considered incorrect. Words found in flagWords override words. |
cSpell.ignoreWords | resource | A list of words to be ignored by the spell checker. |
cSpell.language | resource | Current active spelling language. |
cSpell.languageSettings | resource | Additional settings for individual programming languages and locales. |
cSpell.noSuggestDictionaries | resource | Optional list of dictionaries that will not be used for suggestions. Words in these dictionaries… |
cSpell.suggestWords | A list of suggested replacements for words. Suggested words provide a way to make preferred… | |
cSpell.useLocallyInstalledCSpellDictionaries | resource | Search for @cspell/cspell-bundled-dicts in the workspace folder and use it if found. |
cSpell.userWords | resource | Words to add to global dictionary -- should only be in the user config file. |
cSpell.words | resource | List of words to be considered correct. |
Settings
cSpell.caseSensitive
Name
cSpell.caseSensitiveDescription
Determines if words must match case and accent rules.
false- Case is ignored and accents can be missing on the entire word. Incorrect accents or partially missing accents will be marked as incorrect. Note: Some languages like Portuguese have case sensitivity turned on by default. You must usecSpell.languageSettingsto turn it off.true- Case and accents are enforced by default.
Type
booleanScope
resource - Resource settings, which apply to files and folders, and can be configured in all settings levels, even folder settings.
Default
- none -
cSpell.customDictionaries
Name
cSpell.customDictionaries-- Custom DictionariesDescription
Define custom dictionaries to be included by default. If
addWordsistruewords will be added to this dictionary.Example:
"cSpell.customDictionaries": {
"project-words": {
"name": "project-words",
"path": "${workspaceRoot}/project-words.txt",
"description": "Words used in this project",
"addWords": true
},
"custom": true, // Enable the `custom` dictionary
"internal-terms": false // Disable the `internal-terms` dictionary
}Type
objectScope
resource - Resource settings, which apply to files and folders, and can be configured in all settings levels, even folder settings.
Default
- none -
cSpell.dictionaries
Name
cSpell.dictionariesDescription
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. i.e.!typescriptwill turn off the dictionary with the nametypescript.Example:
// Enable `lorem-ipsum` and disable `typescript`
"cSpell.dictionaries": ["lorem-ipsum", "!typescript"]Type
string[]Scope
resource - Resource settings, which apply to files and folders, and can be configured in all settings levels, even folder settings.
Default
- none -
cSpell.dictionaryDefinitions
Name
cSpell.dictionaryDefinitions-- Dictionary DefinitionsDescription
Define custom dictionaries. If
addWordsistruewords will be added to this dictionary.This setting is subject to User/Workspace settings precedence rules: Visual Studio Code User and Workspace Settings.
It is better to use
cSpell.customDictionariesExample:
"cSpell.dictionaryDefinitions": [
{
"name": "project-words",
"path": "${workspaceRoot}/project-words.txt",
"description": "Words used in this project",
"addWords": true
}
]Type
object[]Scope
resource - Resource settings, which apply to files and folders, and can be configured in all settings levels, even folder settings.
Default
- none -
cSpell.flagWords
Name
cSpell.flagWordsDescription
List of words to always be considered incorrect. Words found in
flagWordsoverridewords.Format of
flagWords- single word entry -
word - with suggestions -
word:suggestionorword->suggestion, suggestions
Example:
"flagWords": [
"color: colour",
"incase: in case, encase",
"canot->cannot",
"cancelled->canceled"
]- single word entry -
Type
string[]Scope
resource - Resource settings, which apply to files and folders, and can be configured in all settings levels, even folder settings.
Default
- none -
cSpell.ignoreWords
Name
cSpell.ignoreWordsDescription
A list of words to be ignored by the spell checker.
Type
string[]Scope
resource - Resource settings, which apply to files and folders, and can be configured in all settings levels, even folder settings.
Default
- none -
cSpell.language
Name
cSpell.languageDescription
Current active spelling language.
Example:
en-GBfor British EnglishExample:
en,nlto enable both English and DutchType
stringScope
resource - Resource settings, which apply to files and folders, and can be configured in all settings levels, even folder settings.
Default
"en"
cSpell.languageSettings
Name
cSpell.languageSettingsDescription
Additional settings for individual programming languages and locales.
Type
object[]Scope
resource - Resource settings, which apply to files and folders, and can be configured in all settings levels, even folder settings.
Default
- none -
cSpell.noSuggestDictionaries
Name
cSpell.noSuggestDictionariesDescription
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.
Type
string[]Scope
resource - Resource settings, which apply to files and folders, and can be configured in all settings levels, even folder settings.
Default
- none -
cSpell.suggestWords
Name
cSpell.suggestWordsDescription
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: suggestionword->suggestion
- Multiple suggestions (not auto fixable)
word: first, second, thirdword->first, second, third
- Single suggestion (possible auto fix)
Type
string[]Scope
- none -
Default
- none -
cSpell.useLocallyInstalledCSpellDictionaries
Name
cSpell.useLocallyInstalledCSpellDictionariesDescription
Search for
@cspell/cspell-bundled-dictsin the workspace folder and use it if found.Type
booleanScope
resource - Resource settings, which apply to files and folders, and can be configured in all settings levels, even folder settings.
Default
trueSince Version
4.0.0
cSpell.userWords
Name
cSpell.userWordsDescription
Words to add to global dictionary -- should only be in the user config file.
Type
string[]Scope
resource - Resource settings, which apply to files and folders, and can be configured in all settings levels, even folder settings.
Default
- none -
cSpell.words
Name
cSpell.wordsDescription
List of words to be considered correct.
Type
string[]Scope
resource - Resource settings, which apply to files and folders, and can be configured in all settings levels, even folder settings.
Default
- none -