Skip to main content

Reporting and Display

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

Setting

Scope

Description

cSpell.autocorrect

resource

Autocorrect

cSpell.autoFormatConfigFile

window

Auto Format Configuration File

cSpell.diagnosticLevel

resource

Set Diagnostic Reporting Level

cSpell.diagnosticLevelFlaggedWords

resource

Set Diagnostic Reporting Level for Flagged Words

cSpell.enabledNotifications

resource

Enabled Notifications

cSpell.hideIssuesWhileTyping

application

Hide Issues While Typing

cSpell.maxDuplicateProblems

resource

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

cSpell.maxNumberOfProblems

resource

Controls the maximum number of spelling errors per document.

cSpell.minWordLength

resource

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

cSpell.numSuggestions

resource

Controls the number of suggestions shown.

cSpell.revealIssuesAfterDelayMS

application

Reveal Issues After a Delay in Milliseconds

cSpell.showAutocompleteDirectiveSuggestions

language-overridable

Show CSpell in-document directives as you type.

cSpell.suggestionNumChanges

resource

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

cSpell.unknownWords

resource

Controls how unknown words are handled.

cSpell.validateDirectives

window

Verify that the in-document directives are correct.

Settings

cSpell.autocorrect

Name

cSpell.autocorrect -- Autocorrect

Description

Enable / Disable autocorrect while typing.

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.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

Any of:

  • "Error"

  • "Warning"

  • "Information"

  • "Hint"

( "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

Any of:

  • "Error"

  • "Warning"

  • "Information"

  • "Hint"

( "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 Extension Version

4.0.0


cSpell.enabledNotifications

Name

cSpell.enabledNotifications -- Enabled Notifications

Description

Control which notifications are displayed.

See:

Type

EnabledNotifications

Scope

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

Default

default
{
"Average Word Length too Long": true,
"Lines too Long": true,
"Maximum Word Length Exceeded": true
}

Since Extension Version

4.0.41


cSpell.hideIssuesWhileTyping

Name

cSpell.hideIssuesWhileTyping -- Hide Issues While Typing

Description

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

Type

Any of:

  • "Off"

  • "Word"

  • "Line"

  • "Document"

( "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 Extension 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 Extension 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.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.unknownWords

Name

cSpell.unknownWords

Description

Controls how unknown words are handled.

  • report-all - Report all unknown words (default behavior)
  • report-simple - Report unknown words that have simple spelling errors, typos, and flagged words.
  • report-common-typos - Report unknown words that are common typos and flagged words.
  • report-flagged - Report unknown words that are flagged.

Type

Any of:

  • "report-all"

  • "report-simple"

  • "report-common-typos"

  • "report-flagged"

( "report-all" | "report-simple" | "report-common-typos" | "report-flagged" )

Scope

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

Default

- none -


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 -


Type Definitions

EnabledNotifications

Name

EnabledNotifications

Description

Control which notifications are displayed.

See:

Type

Fields

Name

Average Word Length too Long

Description

Enable notifications if the average word size is too high.

Type

boolean

Name

Lines too Long

Description

Enable notifications if the line is too long.

Type

boolean

Name

Maximum Word Length Exceeded

Description

Enable notifications if the maximum word length is exceeded.

Type

boolean

{
"Average Word Length too Long"?: boolean;
"Lines too Long"?: boolean;
"Maximum Word Length Exceeded"?: boolean;
}

Since Extension Version

4.0.41