I have custom settings in Visual Studio that include a dark background. Copy/pasting to Outlook produces a crime against eyeballs with a dark background in code on a white backg
This free VS Extension (named "Copy As HTML") allows you to choose the background color when copying to clipboard:
This is a lightweight tool that allows you to copy code from the Code
Window and convert it into HTML while preserving syntax highlighting,
indentation and background colour.