# @cspell/dict-cpp

> C/C++ Dictionary dictionary for cspell.

Latest version **7.1.2** (published 2026-09-12) · MIT license · 0 weekly downloads

## Install

```sh
npm install @cspell/dict-cpp
pnpm add @cspell/dict-cpp
yarn add @cspell/dict-cpp
bun add @cspell/dict-cpp
```

## Health

**Score 65/100 (B)** — status: active.

Positive: esm support; no vulnerabilities; has provenance; recently updated; high maintenance score.

Warnings: low downloads; no types.

## Facts

| | |
|---|---|
| Version | 7.1.2 |
| Published | 2026-09-12 |
| First published | 2020-11-28 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 334.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 290 |
| Author | Street Side Software |
| Maintainers | jason-dent |
| Keywords | cspell, cspell-ext, cpp, C++, C, dictionary, spelling |

## Links

- npm: https://www.npmjs.com/package/@cspell/dict-cpp
- Repository: https://github.com/streetsidesoftware/cspell-dicts
- Homepage: https://github.com/streetsidesoftware/cspell-dicts/blob/main/dictionaries/cpp#readme
- Issues: https://github.com/streetsidesoftware/cspell-dicts/issues
- npm.io page: https://npm.io/package/@cspell/dict-cpp

## Alternatives

- [@gemini-wallet/core](https://npm.io/package/@gemini-wallet/core.md) — 515.6K weekly downloads
- [utility](https://npm.io/package/utility.md) — 416.6K weekly downloads
- [@primno/dpapi](https://npm.io/package/@primno/dpapi.md) — 7.2K weekly downloads
- [pi-readseek](https://npm.io/package/pi-readseek.md) — 3.7K weekly downloads
- [@emilia-protocol/verify](https://npm.io/package/@emilia-protocol/verify.md) — 1.1K weekly downloads

## Recent versions

- 7.1.2 (latest) — 2026-09-12
- 7.1.1 — 2026-09-11
- 7.1.0 — 2026-08-09
- 7.0.2 — 2025-12-20
- 7.0.1 — 2025-12-17
- 7.0.0 — 2025-12-17
- 6.0.15 — 2025-11-28
- 6.0.14 — 2025-10-31
- 6.0.13 — 2025-10-26
- 6.0.12 — 2025-08-31
- 6.0.11 — 2025-08-30
- 6.0.10 — 2025-08-21
- 6.0.9 — 2025-07-09
- 6.0.8 — 2025-04-10
- 6.0.7 — 2025-04-01
- … 58 more at https://npm.io/package/@cspell/dict-cpp/versions

## README

# CSpell C/C++ Dictionary

C/C++ Dictionary for cspell.

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

<!--- @@inject: ../../static/requirements.md --->

## Requirements

| Tool                                                                                                                                 | Version |
| ------------------------------------------------------------------------------------------------------------------------------------ | ------- |
| [cspell](https://github.com/streetsidesoftware/cspell)                                                                               | `>= 8`  |
| [Code Spell Checker - Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=streetsidesoftware.code-spell-checker) | `>= 4`  |

<!--- @@inject-end: ../../static/requirements.md --->

<!--- @@inject: ./static/install.md --->

## Local Installation

**This package is bundled with CSpell.**

## Configuration

<details>
<summary>VSCode Settings</summary>

Add the following to your VSCode settings:

**`.vscode/settings.json`**

```jsonc
{
  "cSpell.dictionaries": ["cpp-legacy", "cpp", "cpp-compound-words", "cpp-refined"],
}
```

</details>

<details>
<summary>CSpell Settings <code>cspell.json</code></summary>

**`cspell.json`**

```jsonc
{
  "dictionaries": ["cpp-legacy", "cpp", "cpp-compound-words", "cpp-refined"],
}
```

</details>

<details>
<summary>CSpell Settings <code>cspell.config.yaml</code></summary>

**`cspell.config.yaml`**

```yaml
dictionaries:
  - cpp-legacy
  - cpp
  - cpp-compound-words
  - cpp-refined
```

</details>

## 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` |

<!--- @@inject-end: ./static/install.md --->

## 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:

```yaml
languageSettings:
  languageId: 'c,cpp' # '*' can be used to disable it for all file types.
  dictionaries:
    - '!cpp-compound-words'
```

<!--- @@inject: ../../static/contributing.md --->

## Contributing

Please help correct any mistakes in the dictionaries.

See: [Contributing](https://github.com/streetsidesoftware/cspell-dicts#contributing)

Special thanks to all of our amazing contributors!

### Dictionary Development

See: [How to Create a New Dictionary](https://github.com/streetsidesoftware/cspell-dicts#how-to-create-a-new-dictionary)

<!--- @@inject-end: ../../static/contributing.md --->

## License

MIT

> Some packages may have other licenses included.

<!--- @@inject: ../../static/footer.md --->

<br/>

---

<p align="center">
Brought to you by <a href="https://streetsidesoftware.com" title="Street Side Software">
<img width="16" alt="Street Side Software Logo" src="https://i.imgur.com/CyduuVY.png" /> Street Side Software
</a>
</p>

<!--- @@inject-end: ../../static/footer.md --->

---
_Source: https://npm.io/package/@cspell/dict-cpp · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
