$ npm install @cspell/dict-cpp
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.
Add the following to your VSCode settings:
.vscode/settings.json
{
"cSpell.dictionaries": ["cpp-legacy", "cpp", "cpp-compound-words", "cpp-refined", "cuda"],
}
cspell.json</summary>
cspell.json
{
"dictionaries": ["cpp-legacy", "cpp", "cpp-compound-words", "cpp-refined", "cuda"],
}
cspell.config.yaml</summary>
cspell.config.yaml
dictionaries:
- cpp-legacy
- cpp
- cpp-compound-words
- cpp-refined
- cuda
NOTE: 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. | |
cuda |
CUDA keywords, built-ins, and runtime and library functions. |
| Name | Locale | File Type |
|---|---|---|
cpp-legacy |
* |
c, cpp, cuda-cpp |
cpp |
* |
c, cpp, cuda-cpp |
cpp-compound-words |
* |
c, cpp, cuda-cpp |
cpp-refined |
* |
c, cpp, cuda-cpp |
cuda |
* |
c, cpp, cuda-cpp, python, julia, fortran, FortranFreeForm, FortranFixedForm |
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,cuda-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
© 2010 - cnpmjs.org x YWFE | Home | YWFE