Sometimes I send code (or stack traces) via email (Outlook) and it's very annoying to see the red spell check squigglies. What's the best way to deal with this?

migrated from programmers.stackexchange.com Apr 29 '13 at 22:53

This question came from our site for professionals, academics, and students working within the systems development life cycle.


You can turn off spell checking for specific sections of text, such as code. These instructions are for Outlook 2013.

  • Select the text for which you want spell checking turned off
  • Display the Review tab of the ribbon
  • Click on Language then Set Proofing Language
  • The Language dialog box pops up
  • Select Do not check spelling or grammar
  • Click on OK

This removes the red squiggly lines from your code, but keeps checking spelling for the rest of your document.

  • This only seems to work for "blocks" i.e. entire paragraphs or table cells. I've defined both character and paragraph level styles and the spelling errors only go away on text with the paragraph style applied. – David Apr 29 '16 at 16:07

The easiest way would be to add those words to your dictionary.

  1. Open a mail message.
  2. Click the File tab.
  3. Click Options.
  4. Click Mail, click Spelling and Autocorrect, and then click Proofing.
  5. Make sure the Suggest from main dictionary only check box is cleared.
  6. Click Custom Dictionaries.
  7. In the Custom Dictionaries dialog box, for any custom dictionaries you want to use, make sure the check box next to each of those dictionaries is selected.

I'm sure you could easily enough build a script to generate the dictionary programmatically before you import it.

  • 4
    I have to add every possible symbol (variable, method, etc) I will ever possibly use in the future to the dictionary? – JoelFan Apr 30 '13 at 11:35
  • 1
    Adding every symbol to a custom dictionary is impractical. He just wants to turn spell check off for certain messages. – John Livermore Oct 28 '14 at 15:35

So I've found that if you click Cancel on the spell check dialog, I get a message that says "We haven't finished checking your spelling, send anyway?". If you select Yes, you will send the email with out it checking the rest of the document for spelling errors.

This is as close as I can see to the "Send as is" option in other mail clients that ignore spelling for the rest of the document.

It doesn't take away the red lines, but at least it lets you send with out having to ignore every error.


Select all test using Ctrl+A Then Alt+U+U+R+L and then enter.

  • 1
    Is this for a specific version of Outlook? In Outlook 2016 there is no "U" command available after ALT. Perhaps if you listed the commands/dialogs each of those hotkey letters was selecting in turn we could translate this command to other versions of Outlook. – music2myear Feb 10 '17 at 22:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.