Skip to main content

Reporting and Display

Settings that control how the spell checker reports and displays errors.

SettingScopeDescription
cSpell.autoFormatConfigFilewindowAuto Format Configuration File
cSpell.diagnosticLevelresourceSet Diagnostic Reporting Level
cSpell.diagnosticLevelFlaggedWordsresourceSet Diagnostic Reporting Level for Flagged Words
cSpell.hideAddToDictionaryCodeActionsresourceHide the options to add words to dictionaries or settings.
cSpell.hideIssuesWhileTypingapplicationHide Issues While Typing
cSpell.maxDuplicateProblemsresourceThe maximum number of times the same word can be flagged as an error in a file.
cSpell.maxNumberOfProblemsresourceControls the maximum number of spelling errors per document.
cSpell.minWordLengthresourceThe minimum length of a word before checking it against a dictionary.
cSpell.numSuggestionsresourceControls the number of suggestions shown.
cSpell.revealIssuesAfterDelayMSapplicationReveal Issues After a Delay in Milliseconds
cSpell.showAutocompleteDirectiveSuggestionslanguage-overridableShow CSpell in-document directives as you type.
cSpell.showCommandsInEditorContextMenuapplicationShow Spell Checker actions in Editor Context Menu
cSpell.showSuggestionsLinkInEditorContextMenuapplicationShow Spelling Suggestions link in the top level context menu.
cSpell.suggestionMenuTyperesourceThe type of menu used to display spelling suggestions.
cSpell.suggestionNumChangesresourceThe maximum number of changes allowed on a word to be considered a suggestions.
cSpell.validateDirectiveswindowVerify that the in-document directives are correct.

Settings

cSpell.autoFormatConfigFile

Name

cSpell.autoFormatConfigFile -- Auto Format Configuration File

Description

If a cspell configuration file is updated, format the configuration file using the VS Code Format Document Provider. This will cause the configuration file to be saved prior to being updated.

Type

boolean

Scope

window - Windows (instance) specific settings which can be configured in user, workspace, or remote settings.

Default

false


cSpell.diagnosticLevel

Name

cSpell.diagnosticLevel -- Set Diagnostic Reporting Level

Description

The Diagnostic Severity Level determines how issues are shown in the Problems Pane and within the document. Set the level to Hint to hide the issues from the Problems Pane.

Note: cSpell.useCustomDecorations must be false to use VS Code Diagnostic Severity Levels.

See: VS Code Diagnostic Severity Level

Type

( "Error" | "Warning" | "Information" | "Hint" )

ValueDescription
ErrorReport Spelling Issues as Errors
WarningReport Spelling Issues as Warnings
InformationReport Spelling Issues as Information
HintReport Spelling Issues as Hints, will not show up in Problems

Scope

resource - Resource settings, which apply to files and folders, and can be configured in all settings levels, even folder settings.

Default

"Information"


cSpell.diagnosticLevelFlaggedWords

Name

cSpell.diagnosticLevelFlaggedWords -- Set Diagnostic Reporting Level for Flagged Words

Description

Flagged word issues found by the spell checker are marked with a Diagnostic Severity Level. This affects the color of the squiggle. By default, flagged words will use the same diagnostic level as general issues. Use this setting to customize them.

See: VS Code Diagnostic Severity Level

Type

( "Error" | "Warning" | "Information" | "Hint" )

ValueDescription
ErrorReport Spelling Issues as Errors
WarningReport Spelling Issues as Warnings
InformationReport Spelling Issues as Information
HintReport Spelling Issues as Hints, will not show up in Problems

Scope

resource - Resource settings, which apply to files and folders, and can be configured in all settings levels, even folder settings.

Default

- none -

Since Version

4.0.0


cSpell.hideAddToDictionaryCodeActions

Name

cSpell.hideAddToDictionaryCodeActions

Description

Hide the options to add words to dictionaries or settings.

Type

boolean

Scope

resource - Resource settings, which apply to files and folders, and can be configured in all settings levels, even folder settings.

Default

false


cSpell.hideIssuesWhileTyping

Name

cSpell.hideIssuesWhileTyping -- Hide Issues While Typing

Description

Control how spelling issues are displayed while typing. See: cSpell.revealIssuesAfterMS to control when issues are revealed.

Type

( "Off" | "Word" | "Line" | "Document" )

ValueDescription
OffShow issues while typing
WordHide issues while typing in the current word
LineHide issues while typing on the line
DocumentHide all issues while typing in the document

Scope

application - Settings that apply to all instances of VS Code and can only be configured in user settings.

Default

"Word"

Since Version

4.0.0


cSpell.maxDuplicateProblems

Name

cSpell.maxDuplicateProblems

Description

The maximum number of times the same word can be flagged as an error in a file.

Type

number

Scope

resource - Resource settings, which apply to files and folders, and can be configured in all settings levels, even folder settings.

Default

20


cSpell.maxNumberOfProblems

Name

cSpell.maxNumberOfProblems

Description

Controls the maximum number of spelling errors per document.

Type

number

Scope

resource - Resource settings, which apply to files and folders, and can be configured in all settings levels, even folder settings.

Default

100


cSpell.minWordLength

Name

cSpell.minWordLength

Description

The minimum length of a word before checking it against a dictionary.

Type

number

Scope

resource - Resource settings, which apply to files and folders, and can be configured in all settings levels, even folder settings.

Default

4


cSpell.numSuggestions

Name

cSpell.numSuggestions

Description

Controls the number of suggestions shown.

Type

number

Scope

resource - Resource settings, which apply to files and folders, and can be configured in all settings levels, even folder settings.

Default

8


cSpell.revealIssuesAfterDelayMS

Name

cSpell.revealIssuesAfterDelayMS -- Reveal Issues After a Delay in Milliseconds

Description

Reveal hidden issues related to cSpell.hideIssuesWhileTyping after a delay in milliseconds.

Type

number

Scope

application - Settings that apply to all instances of VS Code and can only be configured in user settings.

Default

1500

Since Version

4.0.0


cSpell.showAutocompleteDirectiveSuggestions

Name

cSpell.showAutocompleteDirectiveSuggestions

Description

Show CSpell in-document directives as you type.

Note: VS Code must be restarted for this setting to take effect.

Type

boolean

Scope

language-overridable - Resource settings that can be overridable at a language level.

Default

true


cSpell.showCommandsInEditorContextMenu

Name

cSpell.showCommandsInEditorContextMenu

Description

Show Spell Checker actions in Editor Context Menu

Type

boolean

Scope

application - Settings that apply to all instances of VS Code and can only be configured in user settings.

Default

true


cSpell.showSuggestionsLinkInEditorContextMenu

Name

cSpell.showSuggestionsLinkInEditorContextMenu

Description

Show Spelling Suggestions link in the top level context menu.

Type

boolean

Scope

application - Settings that apply to all instances of VS Code and can only be configured in user settings.

Default

true


cSpell.suggestionMenuType

Name

cSpell.suggestionMenuType

Description

The type of menu used to display spelling suggestions.

Type

( "quickPick" | "quickFix" )

ValueDescription
quickPickSuggestions will appear as a drop down at the top of the IDE. (Best choice for Vim Key Bindings)
quickFixSuggestions will appear inline near the word, inside the text editor.

Scope

resource - Resource settings, which apply to files and folders, and can be configured in all settings levels, even folder settings.

Default

"quickPick"


cSpell.suggestionNumChanges

Name

cSpell.suggestionNumChanges

Description

The maximum number of changes allowed on a word to be considered a suggestions.

For example, appending an s onto example -> examples is considered 1 change.

Range: between 1 and 5.

Type

number

Scope

resource - Resource settings, which apply to files and folders, and can be configured in all settings levels, even folder settings.

Default

3


cSpell.validateDirectives

Name

cSpell.validateDirectives

Description

Verify that the in-document directives are correct.

Type

boolean

Scope

window - Windows (instance) specific settings which can be configured in user, workspace, or remote settings.

Default

- none -