C/C++ Dictionary for cspell.
This is a pre-built dictionary for use with cspell.
| Tool | Version |
|---|---|
| cspell | >= 8 |
| Code Spell Checker - Visual Studio Code | >= 4 |
This package is bundled with CSpell.
VSCode Settings
Add the following to your VSCode settings:
.vscode/settings.json
CSpell Settings cspell.json
cspell.json
{
"dictionaries": ["cpp-legacy", "cpp", "cpp-compound-words", "cpp-refined"],
}CSpell Settings cspell.config.yaml
cspell.config.yaml
dictionaries:
- cpp-legacy
- cpp
- cpp-compound-words
- cpp-refinedNOTE: This package is bundled with CSpell.
| Name | Enabled | Description |
|---|---|---|
cpp-legacy |
Legacy C/C++ Keywords and common library functions. | |
cpp |
C/C++ Keywords and common library functions. | |
cpp-compound-words |
C/C++ Common word compounds. | |
cpp-refined |
Refined list of C/C++ Keywords and common library functions. |
| Name | Locale | File Type |
|---|---|---|
cpp-legacy |
* |
c, cpp |
cpp |
* |
c, cpp |
cpp-compound-words |
* |
c, cpp |
cpp-refined |
* |
c, cpp |
It is very common for C/C++ code to contain word compound like errorcode and hashcode.
The cpp-compound-words dictionary is designed to help avoid false positives. But, this can
mean that valid errors are hidden due to the way compounds are combined.
The following configuration can be used to disable the compound dictionary:
languageSettings:
languageId: 'c,cpp' # '*' can be used to disable it for all file types.
dictionaries:
- '!cpp-compound-words'Please help correct any mistakes in the dictionaries.
See: Contributing
Special thanks to all of our amazing contributors!
See: How to Create a New Dictionary
MIT
Some packages may have other licenses included.
Brought to you by
Street Side Software
{ "cSpell.dictionaries": ["cpp-legacy", "cpp", "cpp-compound-words", "cpp-refined"], }