Visual Studio copy/paste into Outlook with standard formatting?

后端 未结 4 1507
感动是毒
感动是毒 2021-02-07 14:41

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

相关标签:
4条回答
  • 2021-02-07 15:16

    This add-in adds a command to copy in plain text: VSHelper

    0 讨论(0)
  • 2021-02-07 15:20

    Ok so the closest I got was using CopySourceAsHtml which also allows you to define custom css styles for that copied html. I peeked at the css styles when copying code from the default VS theme and copied them over.

    Got me 90% there which is good enough - no black code backgrounds on white email backgrounds!

    0 讨论(0)
  • 2021-02-07 15:22

    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.

    0 讨论(0)
  • 2021-02-07 15:27

    The following blog post details how to address this issue in VS2012:

    http://codinglifestyle.wordpress.com/2013/05/17/copy-and-paste-formatting-with-visual-studios-dark-theme/

    0 讨论(0)
提交回复
热议问题