Copy-paste code from Visual Studio, but paste UNFORMATTED code

前端 未结 9 1810
春和景丽
春和景丽 2021-02-11 15:34

Is there any way to force Visual Studio to copy selected code to the clipboard as unformatted text?

When I am copy-pasting code into Word or more often Outlook

9条回答
  •  梦毁少年i
    2021-02-11 15:58

    The Visual Studio Extension Copy for review may be handy for you. Actually, it does not do unformatted copying, but applies it's own simple text-based template.

    It supports a "Stack Overflow" format, which just removes the leading whitespace, while keeping the indentation as much as possible, and introduces some sort of header.

    Get it from the from the Visual Studio Gallery and try it out.

    Disclosure: I am the author of that Extension. Please notfiy me, if I can improve it to your needs.

提交回复
热议问题