JSPM

  • Created
  • Published
  • Downloads 1049782
  • Score
    100M100P100Q206443F
  • License MIT

C/C++ Dictionary dictionary for cspell.

Package Exports

  • @cspell/dict-cpp
  • @cspell/dict-cpp/cspell
  • @cspell/dict-cpp/cspell-ext.json

Readme

CSpell C/C++ Dictionary

C/C++ Dictionary for cspell.

This is a pre-built dictionary for use with cspell.

Requirements

Tool Version
cspell >= 8
Code Spell Checker - Visual Studio Code >= 4

Local Installation

This package is bundled with CSpell.

Configuration

VSCode Settings

Add the following to your VSCode settings:

.vscode/settings.json

{
  "cSpell.dictionaries": ["cpp-legacy", "cpp", "cpp-compound-words", "cpp-refined"],
}
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-refined

Local Installation using CDN

NOTE: This package is bundled with CSpell.

Dictionary Information

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.

Language Settings

Name Locale File Type
cpp-legacy * c, cpp
cpp * c, cpp
cpp-compound-words * c, cpp
cpp-refined * c, cpp

C/C++ Compound Words

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'

Contributing

Please help correct any mistakes in the dictionaries.

See: Contributing

Special thanks to all of our amazing contributors!

Dictionary Development

See: How to Create a New Dictionary

License

MIT

Some packages may have other licenses included.



Brought to you by Street Side Software Logo Street Side Software