
Spellcheck Your Code and Comments #94
Chapter 13, Enhancing Visual Studio
|
431
HACK
Check for Spelling Errors
Once you have configured the add-in options, return to the Code/Text tab
to begin spellchecking. As Figure 13-13 shows, from this tab you can opt to
spellcheck:
• The currently selected text
• The current file
• The current line to the end of the file
• The current project
Once you have specified what to spellcheck, click the Start button to begin
the spellchecking process. This will step through your code, highlighting
misspelled words, prompting you to ignore the word, change it to a cor-
rected spelling, or add it to the dictionary, as shown in Figure 13-13.
Incorrect spelling in production code makes your software look unprofes-
sional and unpolished; comments riddled with misspelled words lead to
confusion and frustration for developers examining others’ code. There’s no
reason why you shouldn’t take the time to spellcheck, at minimum, your
code’s comments and string literals. Armed with this free add-in, such
spellchecking is impressively fast and easy.
—Scott Mitchell
Figure 13-13. Replace, ignore, or add misspelled words to the dictionary file