Skip to main content

Performance

Settings that control the performance of the spell checker.

SettingScopeDescription
cSpell.blockCheckingWhenAverageChunkSizeGreaterThanlanguage-overridableThe maximum average length of chunks of text without word breaks.
cSpell.blockCheckingWhenLineLengthGreaterThanlanguage-overridableThe maximum line length.
cSpell.blockCheckingWhenTextChunkSizeGreaterThanlanguage-overridableThe maximum length of a chunk of text without word breaks.
cSpell.checkLimitresourceSet the maximum number of bocks of text to check. Each block is 1024 characters.
cSpell.spellCheckDelayMsapplicationDelay in ms after a document has changed before checking it for spelling errors.
cSpell.suggestionsTimeoutresourceThe maximum amount of time in milliseconds to generate suggestions for a word.

Settings

cSpell.blockCheckingWhenAverageChunkSizeGreaterThan

Name

cSpell.blockCheckingWhenAverageChunkSizeGreaterThan

Description

The maximum average length of chunks of text without word breaks.

A chunk is the characters between absolute word breaks. Absolute word breaks match: /[\s,{}[\]]/

Error Message: Average Word Size is Too High.

If you are seeing this message, it means that the file contains mostly long lines without many word breaks.

Type

number

Scope

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

Default

80


cSpell.blockCheckingWhenLineLengthGreaterThan

Name

cSpell.blockCheckingWhenLineLengthGreaterThan

Description

The maximum line length.

Block spell checking if lines are longer than the value given. This is used to prevent spell checking generated files.

Error Message: Lines are too long.

Type

number

Scope

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

Default

10000


cSpell.blockCheckingWhenTextChunkSizeGreaterThan

Name

cSpell.blockCheckingWhenTextChunkSizeGreaterThan

Description

The maximum length of a chunk of text without word breaks.

It is used to prevent spell checking of generated files.

A chunk is the characters between absolute word breaks. Absolute word breaks match: /[\s,{}[\]]/, i.e. spaces or braces.

Error Message: Maximum Word Length is Too High.

If you are seeing this message, it means that the file contains a very long line without many word breaks.

Type

number

Scope

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

Default

500


cSpell.checkLimit

Name

cSpell.checkLimit

Description

Set the maximum number of bocks of text to check. Each block is 1024 characters.

Type

number

Scope

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

Default

500


cSpell.spellCheckDelayMs

Name

cSpell.spellCheckDelayMs

Description

Delay in ms after a document has changed before checking it for spelling errors.

Type

number

Scope

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

Default

50


cSpell.suggestionsTimeout

Name

cSpell.suggestionsTimeout

Description

The maximum amount of time in milliseconds to generate suggestions for a word.

Type

number

Scope

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

Default

400