coderushforroslyn-117202-static-code-analysis-spell-checker.md
The Spell Checker finds misspelled words in identifiers, strings, file names and code comments, and shows correction options in the Code Actions menu. This component checks through:
Use one of the following methods to enable the Spell Checker:
The Quick Setup options section.
The Editor | All Languages | Code Analysis | Spell Checker options page.
The CodeRush Visualize toolbar button ( )
Each Spell Checker Setting matches the corresponding diagnostic ID. This allows you to filter misspelled words by context in the spell check results.
The following table shows IDs for each of these diagnostics:
| ID | Title |
|---|---|
| CRRSP02 | A repeated word has been found. |
| CRRSP03 | A misspelled word has been found in the file name. |
| CRRSP04 | A misspelled word has been found in the XML documentation comment. |
| CRRSP05 | A misspelled word has been found in the comment. |
| CRRSP06 | A misspelled word has been found in the string. |
| CRRSP07 | A misspelled word has been found in the verbatim string. |
| CRRSP08 | A misspelled word has been found in the public identifier. |
| CRRSP09 | A misspelled word has been found in the internal identifier. |
| CRRSP10 | A misspelled word has been found in the protected internal identifier. |
| CRRSP11 | A misspelled word has been found in the protected identifier. |
| CRRSP12 | A misspelled word has been found in the private identifier. |
| CRRSP13 | A misspelled word has been found in the local identifier. |
You can use the Code Issues window to find misspelled words in your code.
If CodeRush does not recognize a word, you can add it to the custom dictionary implementing the steps listed below.
Open the Editor | All Languages | Code Analysis | Spell Checker options page to access the Spell Checker Options.
The screenshot below shows default Spell Checker settings.
CodeRush includes a built-in dictionary for the English language. To enable spell-checking capabilities for other languages, add a dictionary to the Spell Checker. See the following example for details: How to: Add a Dictionary to the Spell Checker.